I had the Cpanel API get_password_strength function working previously, but today when I test it was only returning a strength of 31 for the test password *fox&jn3)G>L, then I found the strength remained at 31 even if I added more characters.
Then in a separate test script I'm getting the following error: "Failed to read valid json data in json fast mode". I'm wondering if I've made too many requests with the test script?
I've now tried setting the ftp password to *fox&jn3)G>L$T7j\"B9 using the API function Ftp::passwd and it failed with a 'too weak' error. This was working ok last week.
I found the ftp account had not been created so maybe that's why the password would not reset, but if so then it was returning spurious errors.
I've now recreated the ftp account and get_password_strength is now working correctly again.
Then in a separate test script I'm getting the following error: "Failed to read valid json data in json fast mode". I'm wondering if I've made too many requests with the test script?
I've now tried setting the ftp password to *fox&jn3)G>L$T7j\"B9 using the API function Ftp::passwd and it failed with a 'too weak' error. This was working ok last week.
I found the ftp account had not been created so maybe that's why the password would not reset, but if so then it was returning spurious errors.
I've now recreated the ftp account and get_password_strength is now working correctly again.
Last edited: