Skip to content

Commit 8e77689

Browse files
Issue 109 respect min value , not hardcode
This should fix issue #109 replace hardcoded value with input
1 parent eb88fbf commit 8e77689

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/module/component/mat-password-strength/mat-password-strength.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export class MatPasswordStrengthComponent implements OnInit, OnChanges {
8787
}
8888

8989
private _containAtLeastEightChars(): boolean {
90-
this.containAtLeastEightChars = this.password.length >= 8;
90+
this.containAtLeastEightChars = this.password.length >= this.min;
9191
return this.containAtLeastEightChars;
9292
}
9393

0 commit comments

Comments
 (0)