Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent Logout Timer that's longer than a week. #7253

Merged
merged 3 commits into from
Oct 17, 2019
Merged

Conversation

tmashuang
Copy link
Contributor

Fixes #7231. Prevents the logout timer from being set longer than a week. This doesn't really fix the root cause of why the app logs out immediately and prevents login when setting an arbitrary large logout timer.

@metamaskbot
Copy link
Collaborator

Builds ready [9c0ab5b]

Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks good!

It looks like the root cause is that setTimeout doesn't support timeouts of over 2,147,483,647 ms (about 24.8 days). So while we could increase the max time somewhat, this does kinda address the root cause. Though preventing this in the background might be worthwhile as well.

@Gudahtt Gudahtt merged commit 9d9f368 into develop Oct 17, 2019
@Gudahtt Gudahtt mentioned this pull request Oct 17, 2019
@tmashuang tmashuang deleted the logout-timer-bug branch October 17, 2019 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MetamaskController - No HD Key Tree found after setting very long log out time
3 participants