Jump to content
Changes to the Jaspersoft community edition download ×

Strong login passwords


jmcarcar

Recommended Posts

Hello everyone,

I try to force the passwords to be strong, then I edit the file WEB-INFapplicationContext.xml to change the default line

<property name="allowedPasswordPattern" value="^.*$"></property>

with

<property name="allowedPasswordPattern" value="^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[=.% !@#$^&])(?=.{9,})"></property>

Then force a password of length greater than 8, at least one lowercase, one uppercase, one digit and one special character (=,% !@#$^&).

However it doesn't work for me. How can I solve that?

Thank you very much in advance!

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Hi!

Finally (after a lot of try and fail) I find a solution. This expression is working for me:

<property name="allowedPasswordPattern" value="^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[\!\$\@\#\=\(\)\:\+\-]).{9,}"></property>

This force for a password of length 9 or more, at least one uppercase, one lowercase, one number and one special character of these !$@#=():+-

I have excluded the character "&" because then I got a 404 error.

I hope it helps someone.

Thank you!

 

Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...