sshyp-mfa - made Steam module truly optional

This commit is contained in:
2022-07-13 03:42:15 -04:00
parent 908a1e24cb
commit 7298d5ee6c
+4 -1
View File
@@ -7,10 +7,13 @@ from pathlib import Path
from shutil import rmtree
from sshync import get_profile
from sshyp import decrypt, entry_list_gen, shm_gen
from steam.guard import generate_twofactor_code as steam_totp
from struct import pack, unpack
from sys import argv, exit as s_exit
from time import sleep, strftime, time
try:
from steam.guard import generate_twofactor_code as steam_totp
except ModuleNotFoundError:
pass
def totp(_secret, _algo, _digits, _period): # uses provided information to generate a standard totp key