1
0
mirror of https://github.com/delight-im/PHP-Auth.git synced 2025-08-07 08:36:28 +02:00

Document option of custom expiry of requests for 'Auth#forgotPassword'

This commit is contained in:
Marco
2019-02-25 19:52:32 +01:00
parent df990b5b75
commit 4b3f2ab91c

View File

@@ -279,6 +279,8 @@ You should build an URL with the selector and token and send it to the user, e.g
$url = 'https://www.example.com/reset_password?selector=' . \urlencode($selector) . '&token=' . \urlencode($token); $url = 'https://www.example.com/reset_password?selector=' . \urlencode($selector) . '&token=' . \urlencode($token);
``` ```
If the default lifetime of the password reset requests does not work for you, you can use the third parameter of `Auth#forgotPassword` to specify a custom interval in seconds after which the requests should expire.
#### Step 2 of 3: Verifying an attempt #### Step 2 of 3: Verifying an attempt
As the next step, users will click on the link that they received. Extract the selector and token from the URL. As the next step, users will click on the link that they received. Extract the selector and token from the URL.