diff --git a/src/Porter.php b/src/Porter.php index 0d56ad3..dbda8e4 100644 --- a/src/Porter.php +++ b/src/Porter.php @@ -191,7 +191,7 @@ function (ModelEvent $event) { } - if ($this->settings->passwordForcePolicy && ($user->newPassword || strlen($user->newPassword) >= 0)) + if ($this->settings->passwordForcePolicy && ($user->newPassword || strlen($user->newPassword) > 0)) { $errors = $this->emailPassword->checkPasswordPolicy($user->newPassword);