diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index 942f3c93fa..9193398d89 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -1242,7 +1242,7 @@ $createSession = function (string $userId, string $secret, Request $request, Res $sessionSecret = Auth::tokenGenerator(Auth::TOKEN_LENGTH_SESSION); $expire = DateTime::formatTz(DateTime::addSeconds(new \DateTime(), $duration)); - $factor = match($verifiedToken->getAttribute('type')) { + $factor = match ($verifiedToken->getAttribute('type')) { Auth::TOKEN_TYPE_MAGIC_URL, Auth::TOKEN_TYPE_OAUTH2 => 'email', Auth::TOKEN_TYPE_PHONE => 'phone', Auth::TOKEN_TYPE_GENERIC => 'token',