mirror of
https://gitea.augustin64.fr/piair/MsRewards-Reborn.git
synced 2025-06-21 17:53:56 +02:00
More checks on TFA
This commit is contained in:
@ -30,7 +30,8 @@ class UserCredentials:
|
||||
|
||||
def get_tfa(self):
|
||||
if not self.tfa_enable():
|
||||
warning("Warning: TFA is not enabled. Calling get_tfa is an expected behaviour.")
|
||||
warning("Warning: TFA is not enabled. Can't get a TFA code.")
|
||||
return None
|
||||
return TOTP(self.data[self.current]["2fa"])
|
||||
|
||||
def next_account(self):
|
||||
|
Reference in New Issue
Block a user