Skip to content

Commit

Permalink
fix exception on check password
Browse files Browse the repository at this point in the history
  • Loading branch information
rwhite27 committed Apr 8, 2024
1 parent 317f38e commit 1498f33
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 1498f33

Please sign in to comment.