diff --git a/app/Controllers/RestAuthenticationController.php b/app/Controllers/RestAuthenticationController.php index 263bc310..7dcf2943 100755 --- a/app/Controllers/RestAuthenticationController.php +++ b/app/Controllers/RestAuthenticationController.php @@ -303,7 +303,7 @@ class RestAuthenticationController extends AdminController $this->myLogger->logme("error", "REST-AUTH-CONTROLLER - updateEmpOTP: Received payload = " . json_encode($this->request->getJSON() ?? [])); - $email = $this->request->getJSON()->email; + $email = $this->request->getJSON()->email ?? null; $mobile_number = $this->request->getJSON()->mobile_number; $otp = $this->request->getJSON()->otp; $client_id = $this->request->getJSON()->client_id ?? null;