This commit is contained in:
asyncnomi 2023-01-03 20:20:27 +01:00
parent ae1f8029d8
commit ff636bc355

View file

@ -40,6 +40,7 @@ $("#login-button").click(function (e) {
localStorage.setItem("isAdmin", data.user.isAdmin);
if (data.user.isAdmin) {
show_page('#admin-page');
get_admin("prank");
} else {
show_page('#demande-page');
}
@ -91,7 +92,7 @@ function get_admin(type) {
$("#admin-content").innerHTML = "";
$.ajax({
type: "POST",
url: base_url + "login",
url: base_url + "get",
data: JSON.stringify({
uid: localStorage.getItem('user'),
token: localStorage.getItem('token'),