diff --git a/app/Controllers/RestAuthenticationController.php b/app/Controllers/RestAuthenticationController.php index a82320ef..4aaf962d 100755 --- a/app/Controllers/RestAuthenticationController.php +++ b/app/Controllers/RestAuthenticationController.php @@ -186,6 +186,7 @@ class RestAuthenticationController extends AdminController try { $email = $this->request->getJSON()->email; + $otp = $this->request->getJSON()->otp; $client_id = $this->request->getJSON()->client_id ?? null; @@ -219,11 +220,6 @@ class RestAuthenticationController extends AdminController if (isset($employeeData['employee_id'])) { - $otp = random_int(100000, 999999); - - // $update = $this->employeeModel->where('email_corporate', $email)->where('relationship', 'Self') - // ->where('is_active', 1)->set(array('otp' => $otp)) - // ->update(); $builder = $this->employeeModel ->where('email_corporate', $email)