From c05eeb195a2abeffc8c328dfa0fe74889a880642 Mon Sep 17 00:00:00 2001 From: "venkatesh.r" Date: Tue, 11 Nov 2025 17:16:46 +0530 Subject: [PATCH] FIX_CHANGE_PASS_HASH_ISSUE --- app/Controllers/RestAuthenticationController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Controllers/RestAuthenticationController.php b/app/Controllers/RestAuthenticationController.php index e12a157..69d9e5e 100755 --- a/app/Controllers/RestAuthenticationController.php +++ b/app/Controllers/RestAuthenticationController.php @@ -1570,8 +1570,7 @@ class RestAuthenticationController extends AdminController if (isset($employeeData['employee_id']) && password_verify($old_password, $employeeData['password'])) { // Hash new password - // $newHashedPassword = password_hash($new_password, PASSWORD_DEFAULT); - $newHashedPassword = $new_password; + $newHashedPassword = password_hash($new_password, PASSWORD_DEFAULT); // Update password and clear OTP $updated = $this->employeeModel->update($employeeData['employee_id'], [