[+] Login with token every time
This commit is contained in:
@@ -33,9 +33,8 @@ export default class Login extends Vue
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Already contains valid token / TODO: Validate
|
// Login with token TODO: Logout if expired
|
||||||
// TODO: Update token each access
|
this.login('/login/token', {token: this.$cookies.get('va.token')});
|
||||||
this.$emit('login:token', this.$cookies.get('va.token'));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else console.log('Cookies doesn\'t exist');
|
else console.log('Cookies doesn\'t exist');
|
||||||
|
|||||||
Reference in New Issue
Block a user