From cf28f8617d280962f5c189711586b3c84887d743 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Mon, 2 Dec 2019 16:46:40 -0500 Subject: [PATCH] [O] Remove console logging before clearing cookies --- src/components/login/login.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/components/login/login.ts b/src/components/login/login.ts index 5a6b8ec..c19fabc 100644 --- a/src/components/login/login.ts +++ b/src/components/login/login.ts @@ -27,23 +27,16 @@ export default class Login extends Vue if (this.$cookies.isKey('va.token')) { // Check cookies version - if (this.needToUpdateCookies()) - { - console.log('Version Updated! Clearing cookies...'); - - // Clear all cookies - this.$cookies.keys().forEach(key => this.$cookies.remove(key)); - } + if (this.needToUpdateCookies()) this.clearCookies(); else { // Show loading 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')}); } } - else console.log('Cookies doesn\'t exist'); } /**