|
@@ -10,9 +10,9 @@ if(userBasics !== [] && typeof(userBasics) !== 'string'){
|
|
|
|
|
|
function checkRoute() {
|
|
function checkRoute() {
|
|
let jwt_token = get_jwt_token();
|
|
let jwt_token = get_jwt_token();
|
|
- if(jwt_token == undefined) {
|
|
|
|
- window.location.replace("login.html");
|
|
|
|
- }
|
|
|
|
|
|
+ // if(jwt_token == undefined) {
|
|
|
|
+ // window.location.replace("login.html");
|
|
|
|
+ // }
|
|
axios({
|
|
axios({
|
|
method: 'post',
|
|
method: 'post',
|
|
url: 'https://www.choozmo.com:8887/user_profile',
|
|
url: 'https://www.choozmo.com:8887/user_profile',
|
|
@@ -31,7 +31,7 @@ function checkRoute() {
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
console.log(err);
|
|
console.log(err);
|
|
window.location.replace("login.html");
|
|
window.location.replace("login.html");
|
|
- });
|
|
|
|
|
|
+ });
|
|
}
|
|
}
|
|
|
|
|
|
const btnLoginPage = document.querySelector('.btn-login');
|
|
const btnLoginPage = document.querySelector('.btn-login');
|