[Update] 修改MFA

This commit is contained in:
ibuler
2019-11-18 18:12:03 +08:00
parent c9ee8edeaf
commit bb1349e962
11 changed files with 29 additions and 38 deletions

View File

@@ -109,8 +109,7 @@ class CredentialError(AuthFailedNeedLogMixin, AuthFailedNeedBlockMixin, AuthFail
class MFAFailedError(AuthFailedNeedLogMixin, AuthFailedError):
reason = reason_mfa_failed
error = 'mfa_failed'
error = reason_mfa_failed
msg = mfa_failed_msg
def __init__(self, username, request):