fix(login): redirect to dashboard after successful login
CI / Test (1.22) (push) Failing after -35m9s
CI / Test (1.23) (push) Failing after -35m9s
CI / Lint (push) Failing after -35m9s
CI / Build (push) Failing after -35m9s

This commit is contained in:
2026-05-20 23:00:08 +02:00
parent b2acdd2b84
commit 61c83e878c
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -145,8 +145,7 @@ class ApiClient {
// Keep failed login attempts on the same page. // Keep failed login attempts on the same page.
// Only force logout for JWT-protected API v1 requests. // Only force logout for JWT-protected API v1 requests.
if (isV1APIRequest && !isLoginRequest && !isLoginPage) { if (isV1APIRequest && !isLoginRequest && !isLoginPage) {
// Token expired or invalid, clear auth and redirect. this.clearAuth();
//this.clearAuth();
window.location.href = LOGIN_UI_PATH; window.location.href = LOGIN_UI_PATH;
} }
} }
+1 -1
View File
@@ -34,7 +34,7 @@ export default function LoginPage() {
message: 'Welcome back!', message: 'Welcome back!',
color: 'green', color: 'green',
}); });
navigate('/'); navigate('/dashboard');
} catch (err: any) { } catch (err: any) {
const responseData = err?.response?.data; const responseData = err?.response?.data;
const notificationMessage = const notificationMessage =