From 1e6c1adc3857271bf60b96f596cf39565d62686c Mon Sep 17 00:00:00 2001 From: asyncnomi Date: Tue, 3 Jan 2023 20:13:45 +0100 Subject: [PATCH] fixe johan's mistakes... --- static/js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);