Jump to content

WHMCS requires a too difficult password for new accounts


Web Host Pro

Recommended Posts

Thanks! Strange I had to set top 0 but still had to use special characters and a capital.

 

I changed it to 10, I can't find where this says what it would be, just this:

 

function getPasswordStrength(pw){

var pwlength=(pw.length);

if(pwlength>5)pwlength=5;

var numnumeric=pw.replace(/[0-9]/g,"");

var numeric=(pw.length-numnumeric.length);

if(numeric>3)numeric=3;

var symbols=pw.replace(/\W/g,"");

var numsymbols=(pw.length-symbols.length);

if(numsymbols>3)numsymbols=3;

var numupper=pw.replace(/[A-Z]/g,"");

var upper=(pw.length-numupper.length);

if(upper>3)upper=3;

var pwstrength=((pwlength*10)-20)+(numeric*10)+(numsymbols*15)+(upper*10);

if(pwstrength<0){pwstrength=0}

if(pwstrength>100){pwstrength=100}

return pwstrength;

 

I can't seem to understand this.

 

I suppose it would at least require 5 characters. Any idea what the number is for only this limit?

 

Could it be 5? Wild guess.

Link to comment
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated