Update login redirect path from root to /admin/ endpoint
This commit is contained in:
@@ -70,7 +70,7 @@ function login() {
|
||||
document.getElementById('message').innerText = data.message;
|
||||
saveToken(data.token);
|
||||
setTimeout(() => {
|
||||
window.location.href = "/";
|
||||
window.location.href = "/admin/";
|
||||
}, 1000);
|
||||
} else {
|
||||
document.getElementById('message').innerText = "Login failed.";
|
||||
|
Reference in New Issue
Block a user