mirror of
https://github.com/antonioribeiro/google2fa.git
synced 2026-04-26 16:45:49 +03:00
[GH-ISSUE #133] Sometimes Google2FA::verifyKey fails #63
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/google2fa#63
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gabrielchiron on GitHub (Nov 27, 2019).
Original GitHub issue: https://github.com/antonioribeiro/google2fa/issues/133
Hi!
I have this code in my controller:
$google = Google2FA::verifyKey($user->google2fa, $request->one_time_password, 24);24 is the $window
$request->one_time_password is the code than user have in the app.
Everything works well. But sometimes verifyKey returns a false causing my users to have to reset the code many times. Sometimes with a reset it works but sometimes you have to do a lot.
Now i reset and test 55 times the code and all time return false :(
Any solution?
@gabrielchiron commented on GitHub (Nov 27, 2019):
Wrong repository