[O] Remove console logging before clearing cookies
This commit is contained in:
@@ -27,23 +27,16 @@ export default class Login extends Vue
|
|||||||
if (this.$cookies.isKey('va.token'))
|
if (this.$cookies.isKey('va.token'))
|
||||||
{
|
{
|
||||||
// Check cookies version
|
// Check cookies version
|
||||||
if (this.needToUpdateCookies())
|
if (this.needToUpdateCookies()) this.clearCookies();
|
||||||
{
|
|
||||||
console.log('Version Updated! Clearing cookies...');
|
|
||||||
|
|
||||||
// Clear all cookies
|
|
||||||
this.$cookies.keys().forEach(key => this.$cookies.remove(key));
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Show loading
|
// Show loading
|
||||||
this.disableInput = this.loading = true;
|
this.disableInput = this.loading = true;
|
||||||
|
|
||||||
// Login with token TODO: Logout if expired
|
// Login with token
|
||||||
this.login('/login/token', {token: this.$cookies.get('va.token')});
|
this.login('/login/token', {token: this.$cookies.get('va.token')});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else console.log('Cookies doesn\'t exist');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user