1
0
mirror of https://github.com/delight-im/PHP-Auth.git synced 2025-08-03 14:47:30 +02:00

Adjust tests for 'Auth#resetPassword' now having a return value

This commit is contained in:
Marco
2020-04-20 20:48:19 +02:00
parent 5214da1f59
commit 2f772b00c8

View File

@@ -254,9 +254,7 @@ function processRequestData(\Delight\Auth\Auth $auth) {
}
else if ($_POST['action'] === 'resetPassword') {
try {
$auth->resetPassword($_POST['selector'], $_POST['token'], $_POST['password']);
return 'ok';
return $auth->resetPassword($_POST['selector'], $_POST['token'], $_POST['password']);
}
catch (\Delight\Auth\InvalidSelectorTokenPairException $e) {
return 'invalid token';