Update login redirect path from root to /admin/ endpoint

This commit is contained in:
2025-05-18 14:47:23 +03:30
parent e97b9bdb0c
commit d35a93e4bc

View File

@@ -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.";