diff --git a/app/Controllers/RestAuthenticationController.php b/app/Controllers/RestAuthenticationController.php index 4aaf962d..6e3e3fb0 100755 --- a/app/Controllers/RestAuthenticationController.php +++ b/app/Controllers/RestAuthenticationController.php @@ -300,7 +300,7 @@ class RestAuthenticationController extends AdminController $email = $this->request->getJSON()->email ?? null; - $mobile_number = $this->request->getJSON()->mobile_number; + $mobile_number = $this->request->getJSON()->mobile_number ?? null; $otp = $this->request->getJSON()->otp; $client_id = $this->request->getJSON()->client_id ?? null; $employee_id = $this->request->getJSON()->employee_id ?? null;