mirror of
https://github.com/antonioribeiro/google2fa.git
synced 2026-04-25 16:15:49 +03:00
[PR #73] [MERGED] fix null timestamp issue in verifyKeyNewer #610
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#610
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?
📋 Pull Request Information
Original PR: https://github.com/antonioribeiro/google2fa/pull/73
Author: @SebastianS90
Created: 6/22/2017
Status: ✅ Merged
Merged: 6/22/2017
Merged by: @antonioribeiro
Base:
master← Head:fix-timestamp-issue📝 Commits (1)
1ce103efix null timestamp issue in verifyKeyNewer📊 Changes
1 file changed (+3 additions, -1 deletions)
View changed files
📝
src/Google2FA.php(+3 -1)📄 Description
When using
verifyKeyNewerthen$oldTimestampis given here.This means that the ternary operator (
? :) goes to the else-part and skips the then-part. But then the timestamp normalization ($timestamp = $this->makeTimestamp($timestamp)) is not applied, thus calling$this->findValidOTPwithnull.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.