fixe johan's mistakes...

This commit is contained in:
asyncnomi 2023-01-03 20:13:45 +01:00
parent 2636d30743
commit 1e6c1adc38

View file

@ -36,8 +36,8 @@ $("#login-button").click(function (e) {
success: function (data) {
if(data.success) {
localStorage.setItem("token", data.token);
localStorage.setItem("user", data.user);
localStorage.setItem("isAdmin", data.isAdmin);
localStorage.setItem("user", data.user.uid);
localStorage.setItem("isAdmin", data.user.isAdmin);
show_page('#demande-page');
} else {
alert(data.why);