leonep

Well-Known Member
Nov 18, 2014
168
10
68
Pescara
cPanel Access Level
Root Administrator
Hi
where i can have information about password strenght level ?

i need for automatic creation of accounts on my own management site

i need to validate password fields provided by users and check if is 50 or more

thanks
 

leonep

Well-Known Member
Nov 18, 2014
168
10
68
Pescara
cPanel Access Level
Root Administrator
I am registering new users i don't want to force existing passwords. The user compile my form and i want to validate before saving in my database. After i use these record for create an account in cpanel using API. So before save the password in my database i want to know if the password is good for cpanel
 

leonep

Well-Known Member
Nov 18, 2014
168
10
68
Pescara
cPanel Access Level
Root Administrator
It seems that this function return the required password strenght for an application (like ftp in the example).
i need to know if mypassword is good for the application.
for example i have minum required level 50 per ftp passwords.
my user choose a password and i want check if is 50 or more
 

leonep

Well-Known Member
Nov 18, 2014
168
10
68
Pescara
cPanel Access Level
Root Administrator
I found another function called get_password_strength . It is possibile to compare values returned from get_password_strength and the other function posted by Micheal. It sure will work !
Thank you very much
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,227
463
I am happy to see you were able to find a solution. Thank you for updating us with the outcome.