fix login form
Some checks failed
CI / test-build (push) Has been cancelled

This commit is contained in:
2025-12-20 03:47:13 +00:00
parent b90c725cdb
commit 3a25138d5b
11 changed files with 74 additions and 4 deletions

View File

@@ -61,7 +61,7 @@ async function handleLogin(e) {
}
// Redirect to dashboard or return URL
const returnUrl = new URLSearchParams(window.location.search).get('return') || '/';
const returnUrl = new URLSearchParams(window.location.search).get('return') || '/dashboard';
window.location.href = returnUrl;
} else {
const errorMsg = (data && data.error) ? data.error : 'Login failed';