From bb033fa8be97bc54cd896d5a9fb876363c307544 Mon Sep 17 00:00:00 2001 From: Gowtham M Date: Thu, 28 Nov 2024 09:24:13 +0530 Subject: [PATCH] CHANGE_in emp login api added additional where condition : GWM --- app/Controllers/RestAuthenticationController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Controllers/RestAuthenticationController.php b/app/Controllers/RestAuthenticationController.php index 737265cf..14b61d7d 100755 --- a/app/Controllers/RestAuthenticationController.php +++ b/app/Controllers/RestAuthenticationController.php @@ -74,7 +74,8 @@ class RestAuthenticationController extends AdminController $employeeData = $this->employeeModel->where('mobile', $mobile_number) ->where('relationship', 'self') ->where('emp_status !=', 'truncated') - ->where('is_active', 1)->first(); + ->where('is_active', 1) + ->first(); if ($employeeData) {