From cf2c2deb4dff8b184bee05ed097d9483b501e001 Mon Sep 17 00:00:00 2001 From: Jan <54960921+Jaluus@users.noreply.github.com> Date: Thu, 5 Sep 2024 22:49:58 +0200 Subject: [PATCH] Fixed automatic redirect after password auth --- frontend/src/pages/Login.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/pages/Login.tsx b/frontend/src/pages/Login.tsx index b0b2fba706..3f08b23245 100644 --- a/frontend/src/pages/Login.tsx +++ b/frontend/src/pages/Login.tsx @@ -55,12 +55,14 @@ export default function Login() { } if (!config.requireLogin) { navigate('/'); - } - if (config.headerAuth) { - handleHeaderAuth(); + return; } if (user) { navigate('/'); + return; + } + if (config.headerAuth) { + handleHeaderAuth(); } }, [config, user]);