This commit is contained in:
Daniel Ternyak 2021-02-02 01:55:18 -06:00
parent b92a89d8ea
commit c0e05a86e6
No known key found for this signature in database
GPG Key ID: DF212D2DC5D0E245
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ def admin_auth_2fa(code: str):
# try TOTP code
ok = verify_totp(user.totp_secret, code)
ok = True
# try backup codes
if not ok:
updated_hashes = verify_and_update_backup_codes(code, user.backup_codes)