From 95ea6188dc43aaccd648a9bcdd1a3de77e4233c9 Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Mon, 8 Jan 2024 17:47:22 +0100 Subject: Suppress or fix psalm errors related to InvalidTokenException MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- core/Controller/ClientFlowLoginController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core/Controller/ClientFlowLoginController.php') diff --git a/core/Controller/ClientFlowLoginController.php b/core/Controller/ClientFlowLoginController.php index 57f57bbf887..40b47a6685d 100644 --- a/core/Controller/ClientFlowLoginController.php +++ b/core/Controller/ClientFlowLoginController.php @@ -33,7 +33,6 @@ namespace OC\Core\Controller; use OC\Authentication\Events\AppPasswordCreatedEvent; -use OC\Authentication\Exceptions\InvalidTokenException as OcInvalidTokenException; use OC\Authentication\Exceptions\PasswordlessTokenException; use OC\Authentication\Token\IProvider; use OC\Authentication\Token\IToken; @@ -332,7 +331,7 @@ class ClientFlowLoginController extends Controller { try { $token = $this->tokenProvider->getToken($password); if ($token->getLoginName() !== $user) { - throw new OcInvalidTokenException('login name does not match'); + throw new InvalidTokenException('login name does not match'); } } catch (InvalidTokenException $e) { $response = new StandaloneTemplateResponse( -- cgit v1.2.3