PR review fixes

This commit is contained in:
Matej Bačo
2024-03-02 09:49:56 +00:00
parent 7a29c79fb1
commit a77f517882
+1 -1
View File
@@ -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());
}