This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user