antonioribeiro / google2fa

A One Time Password Authentication package, compatible with Google Authenticator.
MIT License
1.83k stars 199 forks source link

verifyKeyNewer #189

Open roelfilweb opened 1 year ago

roelfilweb commented 1 year ago

How exactly to used "verifyKeyNewer" I always getting a "false" value on my timestamp when using this:

$timestamp = $google2fa->verifyKeyNewer($this->google2fa, $password, $this->google2fa_ts);

var_dump($timestamp);

George2281337 commented 9 months ago

Your oldTimestamp value exceeds the initial time and must pass 0 and update subsequent values ​​in the database and pass them already