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 {