From 7a03403c96e6c5b4eb1aa73e51ebfe630ee302e0 Mon Sep 17 00:00:00 2001 From: steinm Date: Mon, 17 Dec 2012 18:30:08 +0000 Subject: [PATCH] - it is sufficient if password strength is equal the calculated value --- op/op.Ajax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/op/op.Ajax.php b/op/op.Ajax.php index 7bbf96d01..5355b711d 100644 --- a/op/op.Ajax.php +++ b/op/op.Ajax.php @@ -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));