summaryrefslogtreecommitdiffstats
path: root/Auth.php
diff options
context:
space:
mode:
authorLiam Jack <cuonic@cuonic.com>2015-11-06 16:08:22 +0100
committerLiam Jack <cuonic@cuonic.com>2015-11-06 16:08:22 +0100
commit0db7815d21a4ba73c092e37b67d927943803aef5 (patch)
treedff3f8312de6f4cac1831c6ff7573e8ce79fff36 /Auth.php
parent01e7c685a5705d39190e123a1461ff29f1d62603 (diff)
downloadPHPAuth-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-xAuth.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Auth.php b/Auth.php
index 7ab525d..76a63be 100755
--- a/Auth.php
+++ b/Auth.php
@@ -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;
}