Merge remote-tracking branch 'origin/main'

This commit is contained in:
jxxghp 2024-02-21 16:00:00 +08:00
commit 6151bd64dd

View File

@ -19,6 +19,8 @@ class TwoFactorAuth:
@staticmethod
def __calc(secret_key: str) -> str:
if not secret_key:
return ""
try:
input_time = int(time.time()) // 30
key = base64.b32decode(secret_key)