Foren
Change the password policy - Regular Expression in Liferay
Kha N Nguyen, geändert vor 14 Jahren.
Change the password policy - Regular Expression in Liferay
Junior Member Beiträge: 89 Beitrittsdatum: 22.11.09 Neueste Beiträge
I want to change password policy as following:
I set the property in the portal-ext.property as following, but this pattern does not work:
passwords.regexptoolkit.pattern=(?=.{8,24})((?:[a-z]*)(?:[0-9]*)(?:[A-Z]*)(?:[`~!@#$%^&*()|\\:;"'<,>.?/=+-]*))
Can one help me please?
Thanks a lot.
- Passwords will contain at least (1) upper case letter
- Passwords will contain at least (1) lower case letter
- Passwords will contain at least (1) number
- Passwords will contain at least (1) special character
- Passwords will contain at least (8) characters in length
- Password maximum length is 24
I set the property in the portal-ext.property as following, but this pattern does not work:
passwords.regexptoolkit.pattern=(?=.{8,24})((?:[a-z]*)(?:[0-9]*)(?:[A-Z]*)(?:[`~!@#$%^&*()|\\:;"'<,>.?/=+-]*))
Can one help me please?
Thanks a lot.
Kha N Nguyen, geändert vor 14 Jahren.
RE: Change the password policy - Regular Expression in Liferay
Junior Member Beiträge: 89 Beitrittsdatum: 22.11.09 Neueste BeiträgeKha N Nguyen:
I want to change password policy as following:
- Passwords will contain at least (1) upper case letter
- Passwords will contain at least (1) lower case letter
- Passwords will contain at least (1) number
- Passwords will contain at least (1) special character
- Passwords will contain at least (8) characters in length
- Password maximum length is 24
I set the property in the portal-ext.property as following, but this pattern does not work:
passwords.regexptoolkit.pattern=(?=.{8,24})((?:[a-z]*)(?:[0-9]*)(?:[A-Z]*)(?:[`~!@#$%^&*()|\\:;"'<,>.?/=+-]*))
Can one help me please?
Thanks a lot.
I have resolved it.
Ayaz Pasha, geändert vor 14 Jahren.
RE: Change the password policy - Regular Expression in Liferay
Junior Member Beiträge: 78 Beitrittsdatum: 01.08.08 Neueste Beiträge
Hello,
I have the similar issue can you please let me know how you resolved it?
Thanks
Ayaz
I have the similar issue can you please let me know how you resolved it?
Thanks
Ayaz
Sipin Verma, geändert vor 11 Jahren.
RE: Change the password policy - Regular Expression in Liferay
Junior Member Beiträge: 29 Beitrittsdatum: 14.12.10 Neueste Beiträge
Add/customize below 2 properties in your portal-ext.properties:
passwords.toolkit=com.liferay.portal.security.pwd.RegExpToolkit
passwords.regexptoolkit.pattern=((?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*[|:\"'<>,.?;/~!@#`$%^&*_+=-]).{8,16})
Regex description:
(?=.*[0-9]) - password should contain at least 1 digit
(?=.*[a-z]) - password should contain at least 1 lowercase character
(?=.*[A-Z]) - password should contain at least 1 uppercase character
(?=.*[|:\"'<>,.?;/~!@#`$%^&*_+=-]) - password should contain at least 1 of the mentioned special characters
.{6,24} - password should be of minimum 6 characters & maximum 24 characters
passwords.toolkit=com.liferay.portal.security.pwd.RegExpToolkit
passwords.regexptoolkit.pattern=((?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*[|:\"'<>,.?;/~!@#`$%^&*_+=-]).{8,16})
Regex description:
(?=.*[0-9]) - password should contain at least 1 digit
(?=.*[a-z]) - password should contain at least 1 lowercase character
(?=.*[A-Z]) - password should contain at least 1 uppercase character
(?=.*[|:\"'<>,.?;/~!@#`$%^&*_+=-]) - password should contain at least 1 of the mentioned special characters
.{6,24} - password should be of minimum 6 characters & maximum 24 characters