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
Copy file name to clipboardExpand all lines: rfcs/password_validation_limits.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Enabling password validator is Breaking change and disabled by default.
20
20
In the nearest future, when everything will be ready, a validator must be enabled.
21
21
22
22
## Validator Keyword
23
-
Service validation algorithm based on the AJV validator and all validation requirements are inside schemas. All incoming requests checked. We can add additional custom validator `password` keyword for the `password` field, which performs required checks.
23
+
Service validation algorithm based on the AJV validator and all validation requirements are inside schemas. All incoming requests checked. We can add additional custom validator `password` keyword for the `password` field, which performs required checks.
24
24
25
25
Current schema:
26
26
@@ -51,7 +51,7 @@ The parameter accepts the required strength in the range [0-4] that describes th
51
51
52
52
According to the registration process, some passwords generated by service, so custom validator should omit password check if `skipPassword` request param provided.
53
53
54
-
When executed:
54
+
When executed:
55
55
- checks username does not match provided password
56
56
- calls `zxcvbn` to obtain a complexity of passwords and returns whether the given password matches policy
57
57
@@ -63,9 +63,9 @@ Also, we can pass user-provided data into `zxcvbn` to check whether some sensiti
63
63
constconfig= {
64
64
enabled:false,
65
65
minStrength:3, // Desired strength
66
-
forceCheckFieldName:'checkPassword', // force enable password to check if the object field value set..
66
+
forceCheckFieldName:['checkPassword'], // force enable password to check if the object field value set..
67
67
inputFieldNames: [ // Linked fields list, allow filter case sensitive data in the password from the parent object.
0 commit comments