You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
passwordMismatch = The confirmed password doesn't match the new password! isn't always the case eg when the current password isn't a match during changePasswordAsync. #14528
Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)
11.4.1
Bug summary
using changePasswordAsyc(), if the current password isn't a match then microsoft.Extensions.Identity.Core.UserManager base method returns ErrorDescriber.PasswordMismatch which would give from base the message Incorrect password.
It would appear that Umbraco language is translating that into "The confirmed password doesn't match the new password!" which is a misleading message.. as in the case of Change Password, the error is that the Current Password doesn't match
Steps to reproduce
varresetResult=await_memberManager.ChangePasswordAsync(member,model.CurrentPassword!,model.PasswordDetails!.Password!);if(!resetResult.Succeeded){varerrors=resetResult.Errors.ToErrorMessage();AddErrors(resetResult);_logger.LogWarning("Could not change member password {ChangePasswordErrors} [{Code}]",errors,"CP01");returnCurrentUmbracoPage();}
and observe the errors when the CurrentPassword isn't a match.