From 6023cf8b1d39c24eead7fb37dd490634a151dacb Mon Sep 17 00:00:00 2001 From: OxSaitama Date: Wed, 11 Oct 2023 13:01:24 +0200 Subject: [PATCH] fix redirection on login error --- src/front/Components/Layouts/LoginCallbackCustomer/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/front/Components/Layouts/LoginCallbackCustomer/index.tsx b/src/front/Components/Layouts/LoginCallbackCustomer/index.tsx index 104fdb1b..214bfca6 100644 --- a/src/front/Components/Layouts/LoginCallbackCustomer/index.tsx +++ b/src/front/Components/Layouts/LoginCallbackCustomer/index.tsx @@ -30,10 +30,9 @@ export default function LoginCallBackCustomer() { token = await Customers.getInstance().loginCallback(tokenid360); } catch (e) { console.log(e); - //router.push(Module.getInstance().get().modules.pages.CustomersLogin.props.path + "?error=1"); + router.push(Module.getInstance().get().modules.pages.CustomersLogin.props.path + "?error=1"); return; } - if (!token) return router.reload(); CustomerStore.instance.connect(token.accessToken, token.refreshToken); router.push(Module.getInstance().get().modules.pages.Folder.pages.Select.props.path); }