mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
- it is sufficient if password strength is equal the calculated value
This commit is contained in:
parent
493e4df727
commit
7a03403c96
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue
Block a user