Update mongodb.json
--Update the regex validation for MongoDb version so valid numeric version (semver) is only acceptable (3.10 is ok but 3. is not) --Update the regex for password so it can accept also special character, and make it stricter for password --Update the password description to state more information about what password should it be
This commit is contained in:
parent
ee876c6b65
commit
60c42c6655
|
|
@ -28,7 +28,7 @@
|
||||||
"label": "MongoDB Version",
|
"label": "MongoDB Version",
|
||||||
"defaultValue": "4",
|
"defaultValue": "4",
|
||||||
"description": "Checkout their docker page for the valid tags https://hub.docker.com/r/library/mongo/tags/",
|
"description": "Checkout their docker page for the valid tags https://hub.docker.com/r/library/mongo/tags/",
|
||||||
"validRegex": "/^([a-zA-Z0-9])+$/"
|
"validRegex": "/^(\d+\.)?(\d+\.)?(\*|\d+)$"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "$$cap_mongo_username",
|
"id": "$$cap_mongo_username",
|
||||||
|
|
@ -40,9 +40,9 @@
|
||||||
{
|
{
|
||||||
"id": "$$cap_mongo_password",
|
"id": "$$cap_mongo_password",
|
||||||
"label": "MongoDB password",
|
"label": "MongoDB password",
|
||||||
"description": "Only use alphanumeric chars.",
|
"description": "Must contain at least 1 lowercase alphabetical character, at least 1 uppercase alphabetical character, at least 1 numeric character, contain at least one special character,the string must be eight characters or longer",
|
||||||
"validRegex": "/^([a-zA-Z0-9])+$/"
|
"validRegex": "/^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#\$%\^&\*])(?=.{8,})"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue