[F] Fix clear cookie issue

This commit is contained in:
Hykilpikonna
2019-11-04 16:23:40 -05:00
parent e1ef117dcd
commit d2ab7c059f
+3 -1
View File
@@ -33,11 +33,13 @@ export default class Login extends Vue
// Clear all cookies // Clear all cookies
this.$cookies.keys().forEach(key => this.$cookies.remove(key)); this.$cookies.keys().forEach(key => this.$cookies.remove(key));
} }
else
{
// Already contains valid token / TODO: Validate // Already contains valid token / TODO: Validate
// TODO: Update token each access // TODO: Update token each access
this.$emit('login:token', this.$cookies.get('va.token')); this.$emit('login:token', this.$cookies.get('va.token'));
} }
}
else else
{ {
console.log('Cookies doesn\'t exist'); console.log('Cookies doesn\'t exist');