allow error string to be null in case the password was correct #39

Merged
balazs merged 1 commits from bugfix/account-cannot-be-deleted into develop 2021-05-08 20:57:37 +02:00
Showing only changes of commit ad0b8d078f - Show all commits

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;