reauthenticate after every command in the tool

This commit is contained in:
HappyZ 2019-01-30 10:34:43 -06:00
parent 3d358de764
commit 130d47800e
1 changed files with 6 additions and 0 deletions

View File

@ -64,6 +64,12 @@ def interactive(dpt, diagnosis=False):
print_info()
elif cmd == 'diagnosis':
diagnosis_mode(dpt)
# reauthenticate after every command
if not dpt.reauthenticate():
dpt.err_print("Cannot reauthenticate, did you reboot into normal mode?")
dpt.err_print("Client id filepath: {}".format(dpt.client_id_fp))
dpt.err_print("Client key filepath: {}".format(dpt.key_fp))
break
def main():