From 7107e4e867d1ae388a96e296f2f10cf7fc9fc042 Mon Sep 17 00:00:00 2001 From: Florian Sylvain Date: Fri, 30 Dec 2022 02:40:36 +0100 Subject: [PATCH] Formatting cleaning --- web/admin-gui/src/views/Login.vue | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/web/admin-gui/src/views/Login.vue b/web/admin-gui/src/views/Login.vue index 2feecea..64c925c 100644 --- a/web/admin-gui/src/views/Login.vue +++ b/web/admin-gui/src/views/Login.vue @@ -5,13 +5,13 @@ import { setCookie } from '@/utils/cookies'; import { ref, type Ref } from 'vue'; import { useRouter } from 'vue-router'; -const isTokenOK: Ref = ref(undefined) +const isTokenOK: Ref = ref(undefined) const router = useRouter() const authStore = useAuthStore() const email = ref('') const password = ref('') -const isFormEmpty: ()=>boolean = () => { +const isFormEmpty: () => boolean = () => { return email.value === '' || password.value === '' } @@ -59,7 +59,7 @@ function login(email: string, password: string): void { .then(response => response.json()) .then(result => { jwtHandler(result) - if (isTokenOK.value === true) { + if (isTokenOK.value === true) { router.push('/home') } }) @@ -70,7 +70,7 @@ function login(email: string, password: string): void {