Skip to content

Commit

Permalink
Fixed: New pasword field blank throws error
Browse files Browse the repository at this point in the history
  • Loading branch information
bymayo committed Jul 11, 2024
1 parent 6b21e36 commit 1a674c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Porter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1a674c9

Please sign in to comment.