fix: disable login button
This commit is contained in:
parent
1fc1c20c87
commit
9c04fb4e40
1 changed files with 4 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue