This commit is contained in:
2023-11-20 11:45:49 +01:00
parent 94563bfefc
commit 078af33e77
5 changed files with 211 additions and 14 deletions
+2 -3
View File
@@ -60,7 +60,7 @@ class Tools():
self.gen_qr(secret)
return secret
def 2fa_validation(self, otp):
def _2fa_validation(self, otp, secret):
authenticated = valid_totp(otp, secret)
if authenticated:
print('Correct otp, Authenticated!')
@@ -69,5 +69,4 @@ class Tools():
print('Wrong otp, please try again.')
return False
Tools = Tools()
tools = Tools()