Reuse password strength javascript?
Hello,
I am looking to reuse the javascript which indicates the complexity of the password on the creation of the mailboxes to use the API then, how to do that?
If the topic has already been addressed, do not hesitate to communicate a link for me to look into.
Thank you.
-
204/5000 I use UAPI Functions - PasswdStrength::get_required_strength - Developer Documentation - cPanel Documentation in php but the top would be able to manage it in js, I can not find an idea? Thank you 0 -
Hello @pkuhn, You may also need to utilize the following cPanel API 2 function: cPanel API 2 Functions - PasswdStrength::get_password_strength - Developer Documentation - cPanel Documentation We don't offer any examples for JavaScript, but you may find the following StackOverflow threads helpful: You can also read more about how cPanel & WHM determines a password's strength at: How to Determine Password Strength - cPanel Knowledge Base - cPanel Documentation Thank you. 0 -
Hello @cPanelMichel I'm currently using js zone.spip.net/trac/spip-zone/browser/spip-zone/_plugins_/complex/trunk/password.js.html but it does not compute like cpanel. Would github.com/dahdee/pwdMeter/blob/master/jquery.pwdMeter.js be closer to the math? Thank you 0 -
Would github.com/dahdee/pwdMeter/blob/master/jquery.pwdMeter.js be closer to the math?
Hello, I don't know that it's closer to the strength scores provided by cPanel & WHM, but you can review the following document to get a better idea of how the score is formulated so that you can then modify the script to better resemble the cPanel & WHM score if necessary:0 -
Hello Where can we find the regex that do the math? Not easy to remake them easily. 0 -
Where can we find the regex that do the math? Not easy to remake them easily.
Hello @pkuhn, We don't document or have examples of specific regular expressions for password generation. For the purpose of a custom script, you may find the following StackOverflow thread helpful: Thank you.0
Please sign in to leave a comment.
Comments
6 comments