From 1498f33b6ebe87ad139c1562720c7201a6bc45b3 Mon Sep 17 00:00:00 2001 From: Rafael White Date: Mon, 8 Apr 2024 14:57:57 -0400 Subject: [PATCH] fix exception on check password --- src/Models/Users.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 .')); } /**