fix: disable login button

This commit is contained in:
kolaente 2021-12-11 22:08:37 +01:00 committed by Dominik Pschenitschni
parent 1fc1c20c87
commit 9c04fb4e40
No known key found for this signature in database
GPG key ID: B257AC0149F43A77

View file

@ -89,6 +89,7 @@
@click="submit" @click="submit"
:loading="loading" :loading="loading"
tabindex="4" tabindex="4"
:disabled="!allFieldsValid"
> >
{{ $t('user.auth.login') }} {{ $t('user.auth.login') }}
</x-button> </x-button>
@ -186,6 +187,9 @@ export default {
this.openidConnect.providers && this.openidConnect.providers &&
this.openidConnect.providers.length > 0 this.openidConnect.providers.length > 0
}, },
allFieldsValid() {
return this.usernameValid && this.passwordValid
},
...mapState({ ...mapState({
registrationEnabled: state => state.config.registrationEnabled, registrationEnabled: state => state.config.registrationEnabled,
loading: LOADING, loading: LOADING,