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"
|
@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,
|
||||||
|
|
Loading…
Reference in a new issue