- it is sufficient if password strength is equal the calculated value

This commit is contained in:
steinm 2012-12-17 18:30:08 +00:00
parent 493e4df727
commit 7a03403c96

View File

@ -58,7 +58,7 @@ switch($command) {
$ps->calculate();
$score = $ps->get_score();
if($settings->_passwordStrength) {
if($score > $settings->_passwordStrength) {
if($score >= $settings->_passwordStrength) {
echo json_encode(array('error'=>0, 'strength'=>$score, 'score'=>$score/$settings->_passwordStrength, 'ok'=>1));
} else {
echo json_encode(array('error'=>0, 'strength'=>$score, 'score'=>$score/$settings->_passwordStrength, 'ok'=>0));