CHANGE_ mpin check api change : GWM
This commit is contained in:
parent
c1c5699ae2
commit
ecfda34fbc
@ -320,9 +320,9 @@ class RestAuthenticationController extends AdminController
|
|||||||
|
|
||||||
if ($employeeData && $employeeData["mpin"] != null) {
|
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 {
|
} 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) {
|
} catch (\Exception $e) {
|
||||||
return $this->respond(['status' => 'failed','code' => 500,'data' => $e->getMessage()],500);
|
return $this->respond(['status' => 'failed','code' => 500,'data' => $e->getMessage()],500);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user