From 144e88452e63514dfbd0fa2f1cc9bc1f44101f8d Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Thu, 18 Dec 2025 15:49:59 +0400 Subject: [PATCH] Use general bad request for unverified OAuth email --- 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 29fc387d58..65af15d1fe 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -1658,7 +1658,7 @@ App::get('/v1/account/sessions/oauth2/:provider/redirect') ]); if (!$userWithEmail->isEmpty()) { if (!$isVerified) { - $failureRedirect(Exception::USER_OAUTH2_BAD_REQUEST, 'OAuth provider did not verify the email address.'); + $failureRedirect(Exception::GENERAL_BAD_REQUEST); } $user->setAttributes($userWithEmail->getArrayCopy()); }