From 8c52cc7a2e0470fedf21db34c33d982f180c3ebc Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sun, 7 Jul 2019 17:35:42 +0200 Subject: [PATCH] allow pass recovery for non-confirmed emails --- src/Yavsc/Controllers/Accounting/AccountController.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Yavsc/Controllers/Accounting/AccountController.cs b/src/Yavsc/Controllers/Accounting/AccountController.cs index 0fa8061a..f9937926 100644 --- a/src/Yavsc/Controllers/Accounting/AccountController.cs +++ b/src/Yavsc/Controllers/Accounting/AccountController.cs @@ -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