From a2953138f4cb0e1fb2411eb8352084ee189c2d85 Mon Sep 17 00:00:00 2001 From: karliemeads <68717336+karliemeads@users.noreply.github.com> Date: Thu, 6 Oct 2022 10:07:16 -0400 Subject: [PATCH] Fix onboarding create new user password checks (#14010) --- src/onboarding/onboarding-create-user.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/onboarding/onboarding-create-user.ts b/src/onboarding/onboarding-create-user.ts index 1855141a60..ed85129ffd 100644 --- a/src/onboarding/onboarding-create-user.ts +++ b/src/onboarding/onboarding-create-user.ts @@ -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")} @@ -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); }