GWM : sms integration

This commit is contained in:
Gowtham M 2025-10-08 17:06:45 +05:30
parent 73a0a67fb0
commit 7edeca4504

View File

@ -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)