I’m using version 9.2.1 of Concrete. I have tried the following, but I’m certain I’m doing it wrong.
Hi there
Use regular expressions. For example:
^(?=(?:[^a-z]*[a-z]){2})(?=(?:[^A-Z]*[A-Z]){2})(?=(?:[^\d]*\d){1})(?=(?:[^\W_]*[\W_]){2})[a-zA-Z\d\W_]{15,144}$
This regular expression enforces the requirements: at least 2 lowercase letters, at least 2 uppercase letters, at least 2 special characters, and at least 1 number, within a string of 15 to 144 characters. You need to thanks chatgpt
Just simply tested the requirements outside, not on Concrete.
Also you can add simply this on regular expression with all other parameters on
.*\d.*
This regular expression will match any string that contains at least one digit.
JL
Thanks for the information. However, I tried both regular expressions you provided and received the following error when trying to save: Invalid custom regex.
While it allowed me to enter the expression, it did not enforce the requirement of at least one numerical value in the password.
It is allowing me to create an account with no number in the password. Look at my settings below and then the screenshots showing successful creation of an account without a number in the password:
I got it working. It turns out the “Description” field for the regular expression must be filled out for it to work even though the field says it is optional. This might be a bug.