Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "type": "String",
- "default": "",
- "required": true,
- "subtype": "Password",
- "fullName": "Password",
- "description": "The password that the citizen has selected to use with the HealthyCitizen application.",
- "width": 150,
- "searchable": true,
- "transform": [
- "trim"
- ],
- "validate": [
- {
- "validator": "min",
- "arguments": {
- "limit": "8"
- },
- "errorMessages": {
- "default": "Value $val is too small, should be greater than @limit",
- "date": "Date $val should be after @limit (#limit)"
- }
- },
- {
- "validator": "regex",
- "arguments": {
- "regex": "((?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%!&^*-_]).{8})",
- "regexOptions": "i"
- },
- "errorMessages": {
- "default": "Password must contain at least one of each: digit 0-9, lowercase character, uppercase character and one special character: @#$%!&^*-_ and be at least 8 characters long"
- }
- }
- ],
- "visible": true,
- "visibilityPriority": 100,
- "keyName": "password"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement