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
Reset password doesn't work as expected when RequireUniqueEmail is false. When trying to reset the password it changes the password of the first user found. The problem occurs when a new user is created with the same email. See related lines here
Related bug:
Change password operation from the dashboard produces the same result. See here
var user = await _userService.GetForgotPasswordUserAsync(model.Email) as User; should use a user id instead of an email. We also need to check every time we use this method we don't use an email.
Or check that if the option is set, we shouldn't ask for an email.
Describe the bug:
Reset password doesn't work as expected when
RequireUniqueEmail
is false. When trying to reset the password it changes the password of the first user found. The problem occurs when a new user is created with the same email. See related lines hereRelated bug:
Change password operation from the dashboard produces the same result. See here
To Reproduce
services.Configure<IdentityOptions>(o => o.User.RequireUniqueEmail = false);
Expected behavior
Should check the
RequireUniqueEmail
option. In case offalse
value have to find another way how user should identify herself/himself (username?).The text was updated successfully, but these errors were encountered: