Redirect to Login page

This commit is contained in:
2020-06-23 01:03:35 +02:00
parent 9e9e481576
commit 42e1ac95c8
3 changed files with 8 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ $(document).ready(function() {
btn.prop("disabled", true);
btn.html("Logging in… <i class=\"fa fa-spin fa-circle-notch\"></i>");
jsCore.apiCall("/user/login", {"username": username, "password": password, "stayLoggedIn": stayLoggedIn }, function(data) {
document.location = "/admin/dashboard";
document.location.reload();
}, function(err) {
btn.html("Login");
btn.prop("disabled", false);

2
js/admin.min.js vendored
View File

File diff suppressed because one or more lines are too long