CHANGE_MPIN_API : RV
This commit is contained in:
parent
3b8ea5f72e
commit
541bf330b5
@ -505,7 +505,7 @@ class RestAuthenticationController extends AdminController
|
|||||||
$id= $employeeData["id"];
|
$id= $employeeData["id"];
|
||||||
$updateMpin = $this->employeeModel->where('id', $id)->set($mpin_data_to_updata)->update();
|
$updateMpin = $this->employeeModel->where('id', $id)->set($mpin_data_to_updata)->update();
|
||||||
if($updateMpin){
|
if($updateMpin){
|
||||||
$this->callThirdPartyAPI($this->request->getJSON(), 'updateEmpMPIN');
|
$this->callThirdPartyAPI($this->request->getJSON(), 'saveMpin');
|
||||||
$result = ['user_verification' => true , 'message' => "Mpin Updated"];
|
$result = ['user_verification' => true , 'message' => "Mpin Updated"];
|
||||||
return $this->respond(['status' => 'success','code' => 200,'data' => $result],200);
|
return $this->respond(['status' => 'success','code' => 200,'data' => $result],200);
|
||||||
}else{
|
}else{
|
||||||
@ -546,7 +546,7 @@ class RestAuthenticationController extends AdminController
|
|||||||
$id= $employeeData["id"];
|
$id= $employeeData["id"];
|
||||||
$updateMpin = $this->employeeModel->where('id', $id)->set('mpin', $mpin)->update();
|
$updateMpin = $this->employeeModel->where('id', $id)->set('mpin', $mpin)->update();
|
||||||
if($updateMpin){
|
if($updateMpin){
|
||||||
$this->callThirdPartyAPI($this->request->getJSON(), 'updateEmpMPIN');
|
$this->callThirdPartyAPI($this->request->getJSON(), 'updateMpin');
|
||||||
$result = ['mpin_verification' => true , 'message' => "Mpin Updated"];
|
$result = ['mpin_verification' => true , 'message' => "Mpin Updated"];
|
||||||
return $this->respond(['status' => 'success','code' => 200,'data' => $result],200);
|
return $this->respond(['status' => 'success','code' => 200,'data' => $result],200);
|
||||||
}else{
|
}else{
|
||||||
@ -693,6 +693,7 @@ class RestAuthenticationController extends AdminController
|
|||||||
->update();
|
->update();
|
||||||
|
|
||||||
if ($updated) {
|
if ($updated) {
|
||||||
|
$this->callThirdPartyAPI($json, 'forgotMPIN');
|
||||||
log_message('info', 'MPIN reset successful for employee ID: ' . $employeeData['id']);
|
log_message('info', 'MPIN reset successful for employee ID: ' . $employeeData['id']);
|
||||||
return $this->respond([
|
return $this->respond([
|
||||||
'status' => 'success',
|
'status' => 'success',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user