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',