From 66d5e851e823e9667380e759e689fecfbe88e1ec Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 28 Nov 2021 17:06:56 +0100 Subject: [PATCH] feat: improve error handling of login fields --- src/views/user/Login.vue | 45 +++++++++++++++++++++++++++++++++++----- 1 file changed, 40 insertions(+), 5 deletions(-) diff --git a/src/views/user/Login.vue b/src/views/user/Login.vue index b525cf02..8a1ae629 100644 --- a/src/views/user/Login.vue +++ b/src/views/user/Login.vue @@ -21,14 +21,18 @@ v-focus @keyup.enter="submit" tabindex="1" + @focusout="validateField('username')" /> +

+ {{ $t('user.auth.usernameRequired') }} +

+

+ {{ $t('user.auth.passwordRequired') }} +

@@ -106,6 +117,7 @@