CHANGE_MPIN_API : RV
This commit is contained in:
parent
3b8ea5f72e
commit
541bf330b5
@ -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',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user