fixed mfa bug causing error
This commit is contained in:
BIN
__pycache__/_forms.cpython-310.pyc
Normal file
BIN
__pycache__/_forms.cpython-310.pyc
Normal file
Binary file not shown.
BIN
__pycache__/ad.cpython-310.pyc
Normal file
BIN
__pycache__/ad.cpython-310.pyc
Normal file
Binary file not shown.
BIN
__pycache__/db.cpython-310.pyc
Normal file
BIN
__pycache__/db.cpython-310.pyc
Normal file
Binary file not shown.
BIN
__pycache__/mfa.cpython-310.pyc
Normal file
BIN
__pycache__/mfa.cpython-310.pyc
Normal file
Binary file not shown.
BIN
__pycache__/vpn.cpython-310.pyc
Normal file
BIN
__pycache__/vpn.cpython-310.pyc
Normal file
Binary file not shown.
BIN
__pycache__/yamlcon.cpython-310.pyc
Normal file
BIN
__pycache__/yamlcon.cpython-310.pyc
Normal file
Binary file not shown.
@@ -129,6 +129,7 @@ def two_factor():
|
|||||||
if getMfaSecret(user=current_user.data['sAMAccountName']):
|
if getMfaSecret(user=current_user.data['sAMAccountName']):
|
||||||
currSecret = "MFA already setup"
|
currSecret = "MFA already setup"
|
||||||
code = generateOTP(getMfaSecret(user=current_user.data['sAMAccountName']))
|
code = generateOTP(getMfaSecret(user=current_user.data['sAMAccountName']))
|
||||||
|
uri = ''
|
||||||
|
|
||||||
elif not getMfaSecret(user=current_user.data['sAMAccountName']):
|
elif not getMfaSecret(user=current_user.data['sAMAccountName']):
|
||||||
setupMfaSecret(user=current_user.data['sAMAccountName'], secret=generateSecret())
|
setupMfaSecret(user=current_user.data['sAMAccountName'], secret=generateSecret())
|
||||||
|
|||||||
0
templates/forwardemail.html
Normal file
0
templates/forwardemail.html
Normal file
Reference in New Issue
Block a user