Skip to content

Commit

Permalink
Merge pull request #866 from bakaphp/fix-password-change
Browse files Browse the repository at this point in the history
fix exception on check password
  • Loading branch information
rwhite27 authored Apr 8, 2024
2 parents 317f38e + 1498f33 commit 403e766
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Models/Users.php
Original file line number Diff line number Diff line change
Expand Up @@ -914,9 +914,9 @@ public function updatePassword(string $currentPassword, string $newPassword, str
PasswordValidation::validate($newPassword, $verifyPassword);

return $this->resetPassword($newPassword);
} else {
throw new Exception(_(' Your current password is incorrect .'));
}

throw new Exception(_(' Your current password is incorrect .'));
}

/**
Expand Down

0 comments on commit 403e766

Please sign in to comment.