allow error string to be null in case the password was correct
All checks were successful
default-pipeline default-pipeline #178

This commit is contained in:
Balázs Vigh 2021-05-08 09:34:34 +02:00
parent 430b32d0c6
commit ad0b8d078f

View File

@ -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;