includes/clientside/static/pwstrength.js
changeset 504 bc8e0e9ee01d
parent 460 3a1c99845ca8
child 586 234ddd896555
equal deleted inserted replaced
503:f205f4b201ed 504:bc8e0e9ee01d
   209     }
   209     }
   210   }
   210   }
   211   // some colors are from the Gmail sign-up form
   211   // some colors are from the Gmail sign-up form
   212   if ( score >= 10 )
   212   if ( score >= 10 )
   213   {
   213   {
   214     var color = '#000000';
   214     var color = '#010101';
   215     var fgcolor = '#666666';
   215     var fgcolor = '#666666';
   216     var str = $lang.get('usercp_pwstrength_score_verystrong', { score: score });
   216     var str = $lang.get('usercp_pwstrength_score_verystrong', { score: score });
   217   }
   217   }
   218   else if ( score > 3 )
   218   else if ( score > 3 )
   219   {
   219   {
   237   {
   237   {
   238     var color = '#aa0033';
   238     var color = '#aa0033';
   239     var fgcolor = '#FF6060';
   239     var fgcolor = '#FF6060';
   240     var str = $lang.get('usercp_pwstrength_score_weak', { score: score });
   240     var str = $lang.get('usercp_pwstrength_score_weak', { score: score });
   241   }
   241   }
   242   return {
   242   var ret = {
   243     color: color,
   243     color: color,
   244     fgcolor: fgcolor,
   244     fgcolor: fgcolor,
   245     str: str
   245     str: str
   246   };
   246   };
       
   247   return ret;
   247 }
   248 }
   248 
   249 
   249 function password_score_field(field)
   250 function password_score_field(field)
   250 {
   251 {
   251   var indicator = false;
   252   var indicator = false;