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"); } }