From ad0b8d078fdfb6f2c5e40c037a43a94f78d1e33f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Vigh?= Date: Sat, 8 May 2021 09:34:34 +0200 Subject: [PATCH] allow error string to be null in case the password was correct --- src/Controller/UserController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/UserController.php b/src/Controller/UserController.php index 805b752..a6ebbbb 100644 --- a/src/Controller/UserController.php +++ b/src/Controller/UserController.php @@ -210,7 +210,7 @@ class UserController implements ISecured return new JsonContent(['success' => true]); } - private function confirmUserIdentity(User $user, ?DateTime $authenticatedWithGoogleUntil, ?string $password, string &$error): bool + private function confirmUserIdentity(User $user, ?DateTime $authenticatedWithGoogleUntil, ?string $password, ?string &$error): bool { if ($authenticatedWithGoogleUntil !== null && $authenticatedWithGoogleUntil > new DateTime()) { return true; -- 2.45.2