fixe johan's mistakes...
This commit is contained in:
parent
2636d30743
commit
1e6c1adc38
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue