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
Signed by: dpschen
GPG Key ID: B257AC0149F43A77
1 changed files with 4 additions and 0 deletions

View File

@ -89,6 +89,7 @@
@click="submit"
:loading="loading"
tabindex="4"
:disabled="!allFieldsValid"
>
{{ $t('user.auth.login') }}
</x-button>
@ -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,