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

Added config option for custom OTP window #385

Merged
merged 2 commits into from
May 5, 2022
Merged

Added config option for custom OTP window #385

merged 2 commits into from
May 5, 2022

Conversation

robtesch
Copy link
Contributor

@robtesch robtesch commented May 5, 2022

This PR addresses #324 , #374

The aim is to allow a custom "window" to be set, as per the underlying package documentation: https://github.com/antonioribeiro/google2fa#validation-window

A fortify user could now set a window to 0 to instantly invalidate any old OTPs, or they could increase the current default setting of 1 to allow for a more generous window (setting this to 2 would allow up to 1 minute old OTPs to still be valid).

@taylorotwell taylorotwell merged commit 0b8e7a8 into laravel:1.x May 5, 2022
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.

None yet

2 participants