mirror of
https://github.com/delight-im/PHP-Auth.git
synced 2025-08-06 08:07:27 +02:00
Adjust tests for 'Auth#resetPassword' now having a return value
This commit is contained in:
@@ -254,9 +254,7 @@ function processRequestData(\Delight\Auth\Auth $auth) {
|
|||||||
}
|
}
|
||||||
else if ($_POST['action'] === 'resetPassword') {
|
else if ($_POST['action'] === 'resetPassword') {
|
||||||
try {
|
try {
|
||||||
$auth->resetPassword($_POST['selector'], $_POST['token'], $_POST['password']);
|
return $auth->resetPassword($_POST['selector'], $_POST['token'], $_POST['password']);
|
||||||
|
|
||||||
return 'ok';
|
|
||||||
}
|
}
|
||||||
catch (\Delight\Auth\InvalidSelectorTokenPairException $e) {
|
catch (\Delight\Auth\InvalidSelectorTokenPairException $e) {
|
||||||
return 'invalid token';
|
return 'invalid token';
|
||||||
|
Reference in New Issue
Block a user