diff --git a/frontend/src/pages/Login.tsx b/frontend/src/pages/Login.tsx index dad38bdd79..51fdb2026b 100644 --- a/frontend/src/pages/Login.tsx +++ b/frontend/src/pages/Login.tsx @@ -69,12 +69,14 @@ export default function Login() { } if (!config.requireLogin) { navigate('/'); - } - if (config.headerAuth) { - handleHeaderAuth(); + return; } if (user) { navigate('/'); + return; + } + if (config.headerAuth) { + handleHeaderAuth(); } }, [config, user]);