From 407482cbd32f67aee7c597a77cfee7b0fb34ad70 Mon Sep 17 00:00:00 2001 From: "venkatesh.r" Date: Wed, 26 Feb 2025 11:55:15 +0530 Subject: [PATCH] FIX_LOGIN_ISSUE : RV --- app/Controllers/RestAuthenticationController.php | 3 ++- app/Models/EmployeePolicyModel.php | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Controllers/RestAuthenticationController.php b/app/Controllers/RestAuthenticationController.php index 0687e25..b22cbb2 100755 --- a/app/Controllers/RestAuthenticationController.php +++ b/app/Controllers/RestAuthenticationController.php @@ -69,7 +69,8 @@ class RestAuthenticationController extends AdminController $client = \Config\Services::curlrequest(); $url = env('POST_ENROLLMENT_BASEURL').$endPoint; $response = $client->post( $url, ['json' => $postData, 'http_errors' => false ] ); - return json_decode($response->getBody(), true); + // return json_decode($response->getBody(), true); + return $response->getBody(); } diff --git a/app/Models/EmployeePolicyModel.php b/app/Models/EmployeePolicyModel.php index ec1f48a..b584f42 100755 --- a/app/Models/EmployeePolicyModel.php +++ b/app/Models/EmployeePolicyModel.php @@ -112,6 +112,7 @@ class EmployeePolicyModel extends Model 'emp.basic_pay', 'emp.band as grade', 'policy_type.policy_type', + 'policy_type.id as policy_type_id', 'client_branch.branch_name as client_branch_name', 'client_branch.branch_code as client_branch_code', 'cp.policy_no',