Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit 2ff22b2

Browse files
committed
Fix using uui-input-password, with fallback
1 parent 13f7f8c commit 2ff22b2

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/apps/installer/user/installer-user.element.ts

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export class UmbInstallerUserElement extends UmbLitElement {
1111
@state()
1212
private _userFormData?: { name: string; password: string; email: string; subscribeToNewsletter: boolean };
1313
@state()
14-
private _passwordError?: string;
1514
private _installerContext?: UmbInstallerContext;
1615
private _userSettings?:UserSettingsPresentationModel;
1716

@@ -35,6 +34,7 @@ export class UmbInstallerUserElement extends UmbLitElement {
3534
subscribeToNewsletter: user.subscribeToNewsletter ?? false,
3635
};
3736
});
37+
3838
this.observe(this._installerContext.settings, (settings)=>{
3939
this._userSettings= settings?.user;
4040
})
@@ -55,13 +55,6 @@ export class UmbInstallerUserElement extends UmbLitElement {
5555
const email = formData.get('email') as string;
5656
const subscribeToNewsletter = formData.has('subscribeToNewsletter');
5757

58-
const minCarLenth = this._userSettings?.minCharLength ?? 10;
59-
if (password.length < minCarLenth) {
60-
console.log('Len fail');
61-
isValid = false;
62-
return;
63-
}
64-
6558
this._installerContext?.appendData({ user: { name, password, email, subscribeToNewsletter } });
6659
this._installerContext?.nextStep();
6760
};
@@ -101,7 +94,7 @@ export class UmbInstallerUserElement extends UmbLitElement {
10194
id="password"
10295
name="password"
10396
label="password"
104-
.minLength=${this._userSettings?.minCharLength}
97+
minlength=${this._userSettings?.minCharLength ?? 10}
10598
.value=${this._userFormData?.password}
10699
required
107100
required-message="Password is required"></uui-input-password>
@@ -165,7 +158,7 @@ export class UmbInstallerUserElement extends UmbLitElement {
165158
#buttons {
166159
display: flex;
167160
margin-top: auto;
168-
}
161+
A
169162
170163
#button-install {
171164
margin-left: auto;

0 commit comments

Comments
 (0)