feat(login): mapping erreurs — 401 email→error=3, 403 office→error=5, 502 idnot→error=4
Some checks failed
build-and-push-ext / build_push (push) Failing after 5s
Some checks failed
build-and-push-ext / build_push (push) Failing after 5s
This commit is contained in:
parent
89d76f017e
commit
a6e9cbb028
@ -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");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user