identity: fix 2fa recovery codes not working
This commit is contained in:
1 parent
34fa43f302
commit
76af2cbfc8
2 files changed
+4
-3
No files matched your search
@@ -101,7 +101,7 @@ namespace Streetwriters.Identity.Validation
|
||||
context.Result.ErrorDescription = "Please provide a valid multi-factor authentication code.";
|
||||
|
||||
if (string.IsNullOrEmpty(mfaCode)) return;
|
||||
if (string.IsNullOrEmpty(mfaMethod) || !MFAService.IsValidMFAMethod(mfaMethod, user))
|
||||
if (string.IsNullOrEmpty(mfaMethod) || (!MFAService.IsValidMFAMethod(mfaMethod, user) && mfaMethod != MFAMethods.RecoveryCode))
|
||||
{
|
||||
context.Result.ErrorDescription = "Please provide a valid multi-factor authentication method.";
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user