Advertisement
Gordon___From

Untitled

Jun 29th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.05 KB | None | 0 0
  1.  {
  2.   "type": "String",
  3.   "default": "",
  4.   "required": true,
  5.   "subtype": "Password",
  6.   "fullName": "Password",
  7.   "description": "The password that the citizen has selected to use with the HealthyCitizen application.",
  8.   "width": 150,
  9.   "searchable": true,
  10.   "transform": [
  11.     "trim"
  12.   ],
  13.   "validate": [
  14.     {
  15.       "validator": "min",
  16.       "arguments": {
  17.         "limit": "8"
  18.       },
  19.       "errorMessages": {
  20.         "default": "Value $val is too small, should be greater than @limit",
  21.         "date": "Date $val should be after @limit (#limit)"
  22.       }
  23.     },
  24.     {
  25.       "validator": "regex",
  26.       "arguments": {
  27.         "regex": "((?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%!&^*-_]).{8})",
  28.         "regexOptions": "i"
  29.       },
  30.       "errorMessages": {
  31.         "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"
  32.       }
  33.     }
  34.   ],
  35.   "visible": true,
  36.   "visibilityPriority": 100,
  37.   "keyName": "password"
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement