allow pass recovery for non-confirmed emails
This commit is contained in:
@ -496,7 +496,9 @@ namespace Yavsc.Controllers
|
|||||||
if (!await _userManager.IsEmailConfirmedAsync(user))
|
if (!await _userManager.IsEmailConfirmedAsync(user))
|
||||||
{
|
{
|
||||||
_logger.LogWarning($"ForgotPassword: Email {model.LoginOrEmail} not confirmed");
|
_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
|
// For more information on how to enable account confirmation and password reset please visit http://go.microsoft.com/fwlink/?LinkID=532713
|
||||||
|
Reference in New Issue
Block a user