Browse Source

0.0.0.6.7

master
rachanon 9 years ago
parent
commit
85a885e399
  1. 5
      login.html

5
login.html

@ -64,6 +64,7 @@
Authorization: 'Bearer '+ token, Authorization: 'Bearer '+ token,
}, },
success: checkToken, success: checkToken,
error: tokenError,
dataType: 'json' dataType: 'json'
}); });
} }
@ -91,7 +92,9 @@
} }
} }
function tokenError(){
loginPage();
}
function loginPage(){ function loginPage(){
localStorage.removeItem('token'); localStorage.removeItem('token');
var loginTag = '<div class="login">' var loginTag = '<div class="login">'

Loading…
Cancel
Save