diff --git a/static/js/main.js b/static/js/main.js index d43f8c6..f6eb715 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -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);