Fix phone numbers verification
This commit is contained in:
parent
0821697779
commit
dcae8f5692
|
@ -411,10 +411,10 @@ class Requester
|
|||
return json_encode($response);
|
||||
}
|
||||
|
||||
if ($this->db->checknumberValidity($request->phone))
|
||||
if (!$this->db->checknumberValidity($request->phone))
|
||||
return json_encode([ 'agent' => $request->lastname , 'error' => 'invalid phone number', 'error_msg' => $this->messageText['INVALID_PHONE']]);
|
||||
|
||||
if ($this->db->checknumberValidity($request->phone_transaction))
|
||||
if (!$this->db->checknumberValidity($request->phone_transaction))
|
||||
return json_encode([ 'agent' => $request->lastname , 'error' => 'invalid transaction phone number', 'error_msg' => $this->messageText['INVALID_TRANSACTION_PHONE']]);
|
||||
|
||||
$membercodetest = $this->db->isMemberCodeExisted($request->member);
|
||||
|
|
Loading…
Reference in New Issue