diff options
author | Liam Jack <cuonic@cuonic.com> | 2015-11-06 16:08:22 +0100 |
---|---|---|
committer | Liam Jack <cuonic@cuonic.com> | 2015-11-06 16:08:22 +0100 |
commit | 0db7815d21a4ba73c092e37b67d927943803aef5 (patch) | |
tree | dff3f8312de6f4cac1831c6ff7573e8ce79fff36 /Auth.php | |
parent | 01e7c685a5705d39190e123a1461ff29f1d62603 (diff) | |
download | PHPAuth-1.1.zip PHPAuth-1.1.tar.gz PHPAuth-1.1.tar.bz2 |
Should fix PHPUnit testsv1.1
Diffstat (limited to 'Auth.php')
-rwxr-xr-x | Auth.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -177,7 +177,7 @@ class Auth $zxcvbn = new Zxcvbn(); - if($zxcvbn->passwordStrength($password)['score'] < $this->config->password_min_score) { + if($zxcvbn->passwordStrength($password)['score'] < intval($this->config->password_min_score)) { $return['message'] = $this->lang['password_weak']; return $return; } @@ -1108,7 +1108,7 @@ class Auth $zxcvbn = new Zxcvbn(); - if($zxcvbn->passwordStrength($newpass)['score'] < $this->config->password_min_score) { + if($zxcvbn->passwordStrength($newpass)['score'] < intval($this->config->password_min_score)) { $return['message'] = $this->lang['password_weak']; return $return; } |