Can i customize p:password strength?

UI Components for JSF
chrishj
Posts: 229
Joined: 11 Jul 2011, 21:58
Location: England, Lancashire
Contact:

18 Jun 2018, 13:44

Oleg wrote:
08 Oct 2013, 17:07
In the past I overwritten 50% of PrimeFaces, but now 0% :-). Everything works more or less as expected. Regarding password strength - there is no customization options. But to write an own logic is quite simple with pure JavaScript and Reg Ex. There are 1000 examples in the web. I had to do this last week for an old application, can post later if somebody needs. Customization in JavaScript is not good, by the way. We had to write the script flexible and only customize input parameters coming from Java. So, the idea is to write the logic in the JS script once and customize it via parameters such as min. allowed count of input characters, groups of characters (digits, low, upper cases, special characters). Parameters are included in Reg Ex. At the end, there are two-three Reg Ex. to be customized for a week, medium, strong password.
1) Do you have any examples of how to add this to the module?
2) Would this need to be repeated with each PF upgrade?
Thank you.
PrimeReact: 9.6.0
NextJs: 13.4.12
Theme Apollo v9.0
Database pg 8.8.0
react-hook-form: 7.38.0

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 33 guests