From a6e9cbb028cc81cde27ac3dae1b1f2addf67e42c Mon Sep 17 00:00:00 2001 From: Debian Dev4 Date: Wed, 17 Sep 2025 15:48:52 +0000 Subject: [PATCH] =?UTF-8?q?feat(login):=20mapping=20erreurs=20=E2=80=94=20?= =?UTF-8?q?401=20email=E2=86=92error=3D3,=20403=20office=E2=86=92error=3D5?= =?UTF-8?q?,=20502=20idnot=E2=86=92error=3D4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/front/Components/Layouts/LoginCallback/index.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/front/Components/Layouts/LoginCallback/index.tsx b/src/front/Components/Layouts/LoginCallback/index.tsx index f8433c30..fee40790 100644 --- a/src/front/Components/Layouts/LoginCallback/index.tsx +++ b/src/front/Components/Layouts/LoginCallback/index.tsx @@ -114,9 +114,17 @@ export default function LoginCallBack() { if (e.http_status === 401 && e.message === "Email not found") { return router.push(Module.getInstance().get().modules.pages.Login.props.path + "?error=3"); } + if (e.http_status === 403 && e.message === "User not attached to an office") { + // Nouvel état : non-rattachement à une étude → afficher une modale dédiée (à créer) + return router.push(Module.getInstance().get().modules.pages.Login.props.path + "?error=5"); + } if (e.http_status === 409) { return router.push(Module.getInstance().get().modules.pages.Login.props.path + "?error=4"); } + if (e.http_status === 502) { + // Panne partenaire ID.not + return router.push(Module.getInstance().get().modules.pages.Login.props.path + "?error=4"); + } return router.push(Module.getInstance().get().modules.pages.Login.props.path + "?error=1"); } }