mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Fix onboarding create new user password checks (#14010)
This commit is contained in:
parent
88983806ae
commit
a2953138f4
@ -72,7 +72,9 @@ class OnboardingCreateUser extends LitElement {
|
||||
.disabled=${this._loading ||
|
||||
!this._newUser.name ||
|
||||
!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")}
|
||||
</mwc-button>
|
||||
@ -88,7 +90,8 @@ class OnboardingCreateUser extends LitElement {
|
||||
this._newUser.name &&
|
||||
this._newUser.username &&
|
||||
this._newUser.password &&
|
||||
this._newUser.password_confirm
|
||||
this._newUser.password_confirm &&
|
||||
this._newUser.password === this._newUser.password_confirm
|
||||
) {
|
||||
this._submitForm(ev);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user