1
0
mirror of https://github.com/delight-im/PHP-Auth.git synced 2025-07-31 13:20:11 +02:00

Improve documentation to use more suitable data source for token

This commit is contained in:
Marco
2018-03-10 03:47:55 +01:00
parent 42a8c1616c
commit 2f29830ed9

View File

@@ -261,7 +261,7 @@ As the next step, users will click on the link that they received. Extract the s
If the selector/token pair is valid, let the user choose a new password:
```php
if ($auth->canResetPassword($_POST['selector'], $_POST['token'])) {
if ($auth->canResetPassword($_GET['selector'], $_GET['token'])) {
// put the selector into a `hidden` field (or keep it in the URL)
// put the token into a `hidden` field (or keep it in the URL)