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 {