fixed mfa bug causing error

This commit is contained in:
Brandon4466
2024-05-20 23:11:50 -07:00
parent a64e527fac
commit b7962575bf
8 changed files with 1 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -129,6 +129,7 @@ def two_factor():
if getMfaSecret(user=current_user.data['sAMAccountName']):
currSecret = "MFA already setup"
code = generateOTP(getMfaSecret(user=current_user.data['sAMAccountName']))
uri = ''
elif not getMfaSecret(user=current_user.data['sAMAccountName']):
setupMfaSecret(user=current_user.data['sAMAccountName'], secret=generateSecret())

View File