From afabd468887c8f8fbc55027aa3db2e3a72b43e92 Mon Sep 17 00:00:00 2001 From: bitbucket Date: Fri, 3 May 2024 15:40:05 +0530 Subject: [PATCH] CHANGE_ in getVerifiedUserData API : GWM --- app/Controllers/RestAuthenticationController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controllers/RestAuthenticationController.php b/app/Controllers/RestAuthenticationController.php index 0bd7edc6..3af70fc4 100644 --- a/app/Controllers/RestAuthenticationController.php +++ b/app/Controllers/RestAuthenticationController.php @@ -96,7 +96,7 @@ class RestAuthenticationController extends AdminController $mobile_number = $this->request->getJSON()->mobile_number; $otp = $this->request->getJSON()->otp; - $employeeData = $this->employeeModel->where('mobile', $mobile_number)->first(); + $employeeData = $this->employeeModel->where('mobile', $mobile_number)->where('relationship', 'self')->first(); if ($employeeData && $otp == $employeeData["otp"] || $employeeData && isset($this->request->getJSON()->login_by_hr)) { $auth = HttpRequestHelper::getRequestInfo(); if ($auth) {