allow pass recovery for non-confirmed emails

vnext
Paul Schneider 5 years ago
parent bffd9559f7
commit 8c52cc7a2e
1 changed files with 3 additions and 1 deletions

@ -496,7 +496,9 @@ namespace Yavsc.Controllers
if (!await _userManager.IsEmailConfirmedAsync(user))
{
_logger.LogWarning($"ForgotPassword: Email {model.LoginOrEmail} not confirmed");
return View("ForgotPasswordConfirmation");
// don't break this recovery process here ...
// or else e-mail won't ever be validated, since user lost his password.
// don't return View("ForgotPasswordConfirmation");
}
// For more information on how to enable account confirmation and password reset please visit http://go.microsoft.com/fwlink/?LinkID=532713

Loading…