CHANGE_ mpin check api change : GWM

This commit is contained in:
bitbucket 2024-07-15 12:07:55 +05:30
parent c1c5699ae2
commit ecfda34fbc

View File

@ -320,9 +320,9 @@ class RestAuthenticationController extends AdminController
if ($employeeData && $employeeData["mpin"] != null) {
return $this->respond(['status' => 'success','code' => 200,'data' => "Mpin - exist"],200);
return $this->respond(['status' => 'success','code' => 200,'data' => "Mpin - exist" , 'Mpin' =>$employeeData["mpin"]],200);
} else {
return $this->respond(['status' => 'failed','code' => 404,'data' => "Mpin - not found"],200);
return $this->respond(['status' => 'failed','code' => 404,'data' => "Mpin - not found", 'Mpin' =>null],200);
}
} catch (\Exception $e) {
return $this->respond(['status' => 'failed','code' => 500,'data' => $e->getMessage()],500);