diff --git a/src/Models/Users.php b/src/Models/Users.php index cddd948f..b560e509 100644 --- a/src/Models/Users.php +++ b/src/Models/Users.php @@ -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 .')); } /**