From 43d1ca0c66e46e8e8ab8c2ee22bf0c1045a60466 Mon Sep 17 00:00:00 2001 From: Alf Sebastian Houge Date: Sun, 17 Apr 2022 17:58:54 +0200 Subject: [PATCH] Tag login email field as email type --- ui/src/router/views/login.vue | 30 ++++++++---------------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/ui/src/router/views/login.vue b/ui/src/router/views/login.vue index 2b1765b..c3bb8de 100644 --- a/ui/src/router/views/login.vue +++ b/ui/src/router/views/login.vue @@ -16,7 +16,7 @@ export default { password: '', authError: null, tryingToLogIn: false, - errorMessage:'' + errorMessage: '', } }, computed: { @@ -38,7 +38,7 @@ export default { // and password they provided. tryToLogIn() { this.tryingToLogIn = true - this.errorMessage=''; + this.errorMessage = '' // Reset the authError if it existed. this.authError = null return this.logIn({ @@ -53,9 +53,9 @@ export default { // Redirect to the originally requested page, or to the home page }) .catch((error) => { - if(error.response.data?.errors?.login){ - this.errorMessage=error.response.data.errors.login - } + if (error.response.data?.errors?.login) { + this.errorMessage = error.response.data.errors.login + } this.tryingToLogIn = false this.authError = error }) @@ -67,21 +67,9 @@ export default {