You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| externalError | `Input() ` | boolean | `false` | used to change the color of the password to warn if an external error occurs
183
184
| enableLengthRule | `Input() ` | boolean | true | whether to validate the length of the password
184
185
| enableLowerCaseLetterRule | `Input() ` | boolean | true | whether a lowercase letter is optional
@@ -199,6 +200,7 @@ export class OtherModule {
199
200
| upperCaseCriteriaMsg | `Input() ` | `string` | contains at least one upper character | an appropriate msg for the upper case %
200
201
| digitsCriteriaMsg | `Input() ` | `string` | contains at least one digit character | an appropriate msg for the digit case %
201
202
| specialCharsCriteriaMsg | `Input() ` | `string` | contains at least one special character | an appropriate msg for the special case %
203
+
| customCharsCriteriaMsg | `Input() ` | `string` | contains at least one custom character | an appropriate msg for the custom validator case %
202
204
| minCharsCriteriaMsg | `Input() ` | `string` | contains at least ${this.passwordComponent.min} characters | an appropriate msg for the minimum number of chars %
203
205
204
206
@@ -365,6 +367,48 @@ this will looks like -->
365
367
366
368
---
367
369
370
+
#### custom regex validation
371
+
372
+
please consider to use the `customValidator` input (see below)
customCharsCriteriaMsg="1 german special chars is required"
399
+
[enableScoreInfo]="true">
400
+
</mat-password-strength-info>
401
+
402
+
```
403
+
404
+
405
+
406
+
```ts
407
+
pattern=newRegExp(/^(?=.*?[äöüÄÖÜß])/);
408
+
```
409
+
410
+
411
+
368
412
#### Supporting custom messages and ngx-translate for the info component please check the example demo [here](https://angular-material-extensions.github.io/password-strength/examples/mat-password-strength-info)
0 commit comments