While setting up password if someone is not following below criteria it should prompt message like “Password does not meet required complexity” and shouldn’t allow to set password till required criteria is met.
Criteria can be : Password should be between 8 and 12 Alphanumeric characters with at least one special character.