From a77f5178823ac3b56eada8ced42985493e2be5df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Sat, 2 Mar 2024 09:49:56 +0000 Subject: [PATCH] PR review fixes --- app/controllers/api/account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index 10b9a35fb8..845a16c716 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -3603,7 +3603,7 @@ App::post('/v1/account/mfa/authenticators/:type') if ($authenticator) { if ($authenticator->getAttribute('verified')) { - throw new Exception(Exception::GENERAL_UNKNOWN, 'Authenticator already exists on this account.'); // TODO: Type this exception + throw new Exception(Exception::USER_AUTHENTICATOR_ALREADY_VERIFIED); } $dbForProject->deleteDocument('authenticators', $authenticator->getId()); }