From 2dd71494ae2fd4b5acf3c23e638efddec455f904 Mon Sep 17 00:00:00 2001 From: "venkatesh.r" Date: Mon, 2 Mar 2026 15:14:35 +0530 Subject: [PATCH] FIX_ISSUE --- app/Controllers/RestAuthenticationController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Controllers/RestAuthenticationController.php b/app/Controllers/RestAuthenticationController.php index 4573bbf..c6ea35c 100755 --- a/app/Controllers/RestAuthenticationController.php +++ b/app/Controllers/RestAuthenticationController.php @@ -685,6 +685,7 @@ class RestAuthenticationController extends AdminController $data = $this->request->getJSON(); + $email = $data->email; $HrData = $this->hrModel->where('email', $email) @@ -702,6 +703,8 @@ class RestAuthenticationController extends AdminController $this->myLogger->logme("error", "REST-AUTH-CONTROLLER - verifyEmployeeWithMobileNumber: Sending default otp"); } + $data->otp = $otp; + if ($HrData) { //check the resend otp (with in 60 seconds don't allow another otp to send)