From 2f772b00c87b311f1d9601407b18d244df79ee0b Mon Sep 17 00:00:00 2001 From: Marco Date: Mon, 20 Apr 2020 20:48:19 +0200 Subject: [PATCH] Adjust tests for 'Auth#resetPassword' now having a return value --- tests/index.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/index.php b/tests/index.php index bae0019..08c43f5 100644 --- a/tests/index.php +++ b/tests/index.php @@ -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';