identity: reset user 2fa on password reset

This commit is contained in:
Abdullah Atta
2023-09-09 20:31:02 +05:00
parent 1a5fe8230e
commit d91df60c57
3 changed files with 17 additions and 0 deletions
@@ -302,6 +302,7 @@ namespace Streetwriters.Identity.Controllers
var result = await UserManager.RemovePasswordAsync(user);
if (result.Succeeded)
{
await MFAService.ResetMFAAsync(user);
result = await UserManager.AddPasswordAsync(user, form.NewPassword);
if (result.Succeeded)
{