Setting password complexity requirements

Hi

Is there way to set user password complexity requirements in cuba-platform application?

Thanks

Regards
Darius

1 Like

Hi
I added the following properties in app.properties and specified them as follows.


cuba.passwordPolicyRegExp = ^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{6,16}$
cuba.passwordPolicyEnabled = true

Tried to change the passwords, and it still accepts any password.

What I am missing? Thanks

Hi Darius,

These properties are of the client tier, so specify them in web-app.properties file of the web module or in the database through the Administration > Application Properties screen.

1 Like

Thanks, Konstantin. :slight_smile: