[O] Remove console logging before clearing cookies

This commit is contained in:
Hykilpikonna
2019-12-02 16:46:40 -05:00
parent ca54abe788
commit cf28f8617d
+2 -9
View File
@@ -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');
} }
/** /**