2fa-0.8
This commit is contained in:
+2
-3
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user