allow pass recovery for non-confirmed emails
This commit is contained in:
parent
be9889be59
commit
75770fccdf
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue