Fix onboarding create new user password checks (#14010)

This commit is contained in:
karliemeads 2022-10-06 10:07:16 -04:00 committed by GitHub
parent 88983806ae
commit a2953138f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,7 +72,9 @@ class OnboardingCreateUser extends LitElement {
.disabled=${this._loading || .disabled=${this._loading ||
!this._newUser.name || !this._newUser.name ||
!this._newUser.username || !this._newUser.username ||
!this._newUser.password} !this._newUser.password ||
!this._newUser.password_confirm ||
this._newUser.password !== this._newUser.password_confirm}
> >
${this.localize("ui.panel.page-onboarding.user.create_account")} ${this.localize("ui.panel.page-onboarding.user.create_account")}
</mwc-button> </mwc-button>
@ -88,7 +90,8 @@ class OnboardingCreateUser extends LitElement {
this._newUser.name && this._newUser.name &&
this._newUser.username && this._newUser.username &&
this._newUser.password && this._newUser.password &&
this._newUser.password_confirm this._newUser.password_confirm &&
this._newUser.password === this._newUser.password_confirm
) { ) {
this._submitForm(ev); this._submitForm(ev);
} }