Adoxio / xRM-Portals-Community-Edition

The definitive edition of Microsoft Open Source Portals, supported by the experts in portals.
MIT License
107 stars 60 forks source link

Password validation problem using Redeem Invitation page #65

Closed MMlinsek closed 5 years ago

MMlinsek commented 6 years ago

Hello everyone,

I have set up portal locally and connect it to test crm system. In this CRM some rules for password validation are set:

slika

I have tried to register new user on portal using redeem invitation code. After inserting code to form for registration, system redirects me to Login Registration form:

slika

So far so good. This form should validate my password on submit. Portal returns an error when I don't insert password or username, but does not return an error if password is not OK (complexity etc).. If I insert password 123 and confirm it, portal just redirects me to home page and does not show wrong password error. Username is not inserted to contact in CRM. Am I doing something wrong or is it a bug?

Thank you for your help. Best regards Matej

Brad-ProgressiveCRM commented 5 years ago

I am also having this issue, although upon submitting the page just refreshes. Did you solve this issue?

difaze commented 5 years ago

I have the same issue, haven't been able to resolve it.

Brad-ProgressiveCRM commented 5 years ago

I did manage to overcome my issue. The way i got around this was commenting out an if statement in the RegistrationManager.cs within the MasterPortal/Areas/Account/Models path. The if statement is on line 207 and looks like this if (!result.Succeeded) { var urlHelper = this.GetUrlHelper(); this.loginManager.AddErrors(result); this.loginManager.HttpContext.Response.Redirect(urlHelper.Action("RedeemInvitation", "Login", new { InvitationCode = invitationCode })); } When i was stepping through the code, it looked like this would cause the page to refresh which meant the error message would not show.

amervitz commented 5 years ago

Fixed by PR #93.