From 9c04fb4e40cbe1185a81c28696a546d638645c97 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 11 Dec 2021 22:08:37 +0100 Subject: [PATCH] fix: disable login button --- src/views/user/Login.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/user/Login.vue b/src/views/user/Login.vue index 9fa583c5..8848d41e 100644 --- a/src/views/user/Login.vue +++ b/src/views/user/Login.vue @@ -89,6 +89,7 @@ @click="submit" :loading="loading" tabindex="4" + :disabled="!allFieldsValid" > {{ $t('user.auth.login') }} @@ -186,6 +187,9 @@ export default { this.openidConnect.providers && this.openidConnect.providers.length > 0 }, + allFieldsValid() { + return this.usernameValid && this.passwordValid + }, ...mapState({ registrationEnabled: state => state.config.registrationEnabled, loading: LOADING,