From 541bf330b56805dab9fba20921a97f00fed9d13e Mon Sep 17 00:00:00 2001 From: "venkatesh.r" Date: Thu, 3 Jul 2025 20:10:14 +0530 Subject: [PATCH] CHANGE_MPIN_API : RV --- app/Controllers/RestAuthenticationController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Controllers/RestAuthenticationController.php b/app/Controllers/RestAuthenticationController.php index 2f0b72b..bada67a 100755 --- a/app/Controllers/RestAuthenticationController.php +++ b/app/Controllers/RestAuthenticationController.php @@ -505,7 +505,7 @@ class RestAuthenticationController extends AdminController $id= $employeeData["id"]; $updateMpin = $this->employeeModel->where('id', $id)->set($mpin_data_to_updata)->update(); if($updateMpin){ - $this->callThirdPartyAPI($this->request->getJSON(), 'updateEmpMPIN'); + $this->callThirdPartyAPI($this->request->getJSON(), 'saveMpin'); $result = ['user_verification' => true , 'message' => "Mpin Updated"]; return $this->respond(['status' => 'success','code' => 200,'data' => $result],200); }else{ @@ -546,7 +546,7 @@ class RestAuthenticationController extends AdminController $id= $employeeData["id"]; $updateMpin = $this->employeeModel->where('id', $id)->set('mpin', $mpin)->update(); if($updateMpin){ - $this->callThirdPartyAPI($this->request->getJSON(), 'updateEmpMPIN'); + $this->callThirdPartyAPI($this->request->getJSON(), 'updateMpin'); $result = ['mpin_verification' => true , 'message' => "Mpin Updated"]; return $this->respond(['status' => 'success','code' => 200,'data' => $result],200); }else{ @@ -693,6 +693,7 @@ class RestAuthenticationController extends AdminController ->update(); if ($updated) { + $this->callThirdPartyAPI($json, 'forgotMPIN'); log_message('info', 'MPIN reset successful for employee ID: ' . $employeeData['id']); return $this->respond([ 'status' => 'success',