more log
This commit is contained in:
parent
291030bdf9
commit
26b5d4bdf4
1 changed files with 3 additions and 0 deletions
|
|
@ -517,10 +517,13 @@ namespace Yavsc.Controllers
|
|||
return RedirectToAction(nameof(AccountController.ResetPasswordConfirmation), "Account");
|
||||
}
|
||||
var result = await _userManager.ResetPasswordAsync(user, model.Code, model.Password);
|
||||
|
||||
if (result.Succeeded)
|
||||
{
|
||||
_logger.LogInformation($"Password reset for {user.UserName}:{model.Password}");
|
||||
return RedirectToAction(nameof(AccountController.ResetPasswordConfirmation), "Account");
|
||||
}
|
||||
_logger.LogInformation($"Password reset failed for {user.UserName}:{model.Password}");
|
||||
AddErrors(result);
|
||||
return View();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue