Validate password confirmation

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
On the registration page (/register), the validation of the password confirmation happens in reverse. The correct procedure is to validate only after entering the password confirmation.

In Nop.Web / Validators / Customer / RegisterValidator.cs simply reverse this way:

RuleFor(x => x.ConfirmPassword).Equal(x => x.Password).WithMessage(localizationService.GetResource("Account.Fields.Password.EnteredPasswordsDoNotMatch"));
12 years ago
Thanks
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.