mirror of
https://github.com/RobThree/TwoFactorAuth.git
synced 2026-08-17 13:34:31 +00:00
* Typo
This commit is contained in:
@@ -88,7 +88,7 @@ $result = $tfa->verifyCode($_SESSION['secret'], $_POST['verification']);
|
||||
|
||||
The second parameter `$time` allows you to check a code for a specific point in time. This parameter has no real practical use but can be handy for unittesting etc. The default value, `null`, means: use the current time.
|
||||
|
||||
Ok, so now the code has been verified and found to be correct. Now we can store the `$secret` with our user in our database (or elsewhere) and whenever the user begins a new session we ask for a code generated by the authentication app of their choice. All we need to to is call `verifyCode()` again with the shared secret and the entered code and we know if the user is legit or not.
|
||||
Ok, so now the code has been verified and found to be correct. Now we can store the `$secret` with our user in our database (or elsewhere) and whenever the user begins a new session we ask for a code generated by the authentication app of their choice. All we need to do is call `verifyCode()` again with the shared secret and the entered code and we know if the user is legit or not.
|
||||
|
||||
Simple as 1-2-3.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user