Skip to content

Commit

Permalink
increased response timer for 2fa code
Browse files Browse the repository at this point in the history
  • Loading branch information
jwlkns committed Jun 28, 2023
1 parent 8250d5f commit 8805821
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def _depot_downloader(self, options: list):
]

# Default timeout in seconds
timeout = 15
timeout = 30
response = p.expect(responses, timeout=timeout)

# Error
Expand All @@ -299,6 +299,7 @@ def _depot_downloader(self, options: list):
elif response == 1:
# Open popup for 2FA Code
# Create temporary parent window to prevent error with visibility
# @TODO add timer as actual timer or bar running out
temp = tkinter.Tk()
temp.withdraw()
code = tkinter.simpledialog.askstring(title="Code", prompt="Please enter your 2FA login code", parent=temp).upper()
Expand Down

0 comments on commit 8805821

Please sign in to comment.