summaryrefslogtreecommitdiffstats
path: root/Auth.php
diff options
context:
space:
mode:
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;
}