GWM : app signature and relationship string in getEmployeePolicy API
This commit is contained in:
commit
e5a4f978d2
@ -3,6 +3,14 @@
|
|||||||
use CodeIgniter\Router\RouteCollection;
|
use CodeIgniter\Router\RouteCollection;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Allow OPTIONS for all routes
|
||||||
|
$routes->options('(:any)', function() {
|
||||||
|
// This will never be called because the CORS filter returns early
|
||||||
|
// But having this route ensures OPTIONS isn't rejected as 404
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var RouteCollection $routes
|
* @var RouteCollection $routes
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -2290,7 +2290,7 @@ class EmployeeRestController extends AdminController
|
|||||||
$empData = $this->employeeModel->where('emp_code', $emp_code )->where('client_id', $client_id ) ->where('is_active', 1 )->findAll();
|
$empData = $this->employeeModel->where('emp_code', $emp_code )->where('client_id', $client_id ) ->where('is_active', 1 )->findAll();
|
||||||
$employeeIds = array_column($empData, 'id');
|
$employeeIds = array_column($empData, 'id');
|
||||||
//for mail common parameter
|
//for mail common parameter
|
||||||
$filteredEmpData = array_filter($empData, fn($item) => $item['relationship'] === 'Self');
|
$filteredEmpData = array_values(array_filter($empData, fn($item) => $item['relationship'] === 'Self'));
|
||||||
|
|
||||||
if (!is_null($client_policy_id) && is_array($client_policy_id))
|
if (!is_null($client_policy_id) && is_array($client_policy_id))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -390,6 +390,14 @@ class RestAuthenticationController extends AdminController
|
|||||||
$email_id = isset($this->request->getJSON()->email_id) ? $this->request->getJSON()->email_id : null;
|
$email_id = isset($this->request->getJSON()->email_id) ? $this->request->getJSON()->email_id : null;
|
||||||
$otp = isset($this->request->getJSON()->otp) ? $this->request->getJSON()->otp : null;
|
$otp = isset($this->request->getJSON()->otp) ? $this->request->getJSON()->otp : null;
|
||||||
|
|
||||||
|
if(empty($otp)){
|
||||||
|
return $this->respond(['status' => 'OTP is required','code' => 400,'message' => 'OTP is required'], 200);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (empty($mobile_number) && empty($email_id)) {
|
||||||
|
return $this->respond(['status' => 'failed','code' => 400,'message' => 'Mobile number or Email ID is required'], 200);
|
||||||
|
}
|
||||||
|
|
||||||
$this->myLogger->logme("error", "REST-AUTH-CONTROLLER - getVerifiedUserData: Fetching empdata via RestAuthHelper");
|
$this->myLogger->logme("error", "REST-AUTH-CONTROLLER - getVerifiedUserData: Fetching empdata via RestAuthHelper");
|
||||||
$empdata = RestAuthHelper::getPreAndPostDataByEmailOrMobile(['email_id' => $email_id, 'otp' => $otp, 'mobile_number' => $mobile_number ]);
|
$empdata = RestAuthHelper::getPreAndPostDataByEmailOrMobile(['email_id' => $email_id, 'otp' => $otp, 'mobile_number' => $mobile_number ]);
|
||||||
|
|
||||||
|
|||||||
@ -60,8 +60,71 @@
|
|||||||
#table-client-policy_filter{
|
#table-client-policy_filter{
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
<style>
|
||||||
|
.switch {
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
width: 54px;
|
||||||
|
height: 34px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.switch input {
|
||||||
|
opacity: 0;
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.slider {
|
||||||
|
position: absolute;
|
||||||
|
cursor: pointer;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
background-color: #ccc;
|
||||||
|
-webkit-transition: .4s;
|
||||||
|
transition: .4s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.slider:before {
|
||||||
|
position: absolute;
|
||||||
|
content: "";
|
||||||
|
height: 19px;
|
||||||
|
width: 19px;
|
||||||
|
left: 4px;
|
||||||
|
bottom: 4px;
|
||||||
|
background-color: white;
|
||||||
|
-webkit-transition: .4s;
|
||||||
|
transition: .4s;
|
||||||
|
}
|
||||||
|
|
||||||
|
input:checked + .slider {
|
||||||
|
background-color: #2196F3;
|
||||||
|
}
|
||||||
|
|
||||||
|
input:focus + .slider {
|
||||||
|
box-shadow: 0 0 1px #2196F3;
|
||||||
|
}
|
||||||
|
|
||||||
|
input:checked + .slider:before {
|
||||||
|
-webkit-transform: translateX(26px);
|
||||||
|
-ms-transform: translateX(26px);
|
||||||
|
transform: translateX(26px);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Rounded sliders */
|
||||||
|
.slider.round {
|
||||||
|
border-radius: 34px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.slider.round:before {
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="tab-pane fade" id="police-tab">
|
<div class="tab-pane fade" id="police-tab">
|
||||||
@ -227,7 +290,7 @@
|
|||||||
required>
|
required>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-4">
|
<!-- <div class="form-group col-md-4">
|
||||||
<label class="switch" style="position: relative;top: 43px;left: 20px;">
|
<label class="switch" style="position: relative;top: 43px;left: 20px;">
|
||||||
<input id="inception_type" type="checkbox" name="inception_type">
|
<input id="inception_type" type="checkbox" name="inception_type">
|
||||||
<span class="slider round" style="height: 27px;"></span>
|
<span class="slider round" style="height: 27px;"></span>
|
||||||
@ -235,6 +298,15 @@
|
|||||||
|
|
||||||
<label for="inception_type" style="position: relative;bottom: 5px;left: 85px;">Enable
|
<label for="inception_type" style="position: relative;bottom: 5px;left: 85px;">Enable
|
||||||
Employee Enrolment Process</label>
|
Employee Enrolment Process</label>
|
||||||
|
</div> -->
|
||||||
|
<div class="form-group col-md-4" style="padding-top:50px;padding-bottom: 0px;">
|
||||||
|
<label for="inception_type" style=" position: relative;bottom: 5px;">
|
||||||
|
<label class="switch">
|
||||||
|
<input id="inception_type" type="checkbox" name="inception_type">
|
||||||
|
<span class="slider round" style="height: 27px;"></span>
|
||||||
|
</label>Enable
|
||||||
|
Employee Enrolment Process
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
@ -262,14 +334,25 @@
|
|||||||
id="disclaimer"></textarea>
|
id="disclaimer"></textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4" style="padding-top:50px;padding-bottom: 0px;">
|
||||||
|
<label for="policy_visibility" style=" position: relative;bottom: 5px;">
|
||||||
|
<label class="switch">
|
||||||
|
<!-- <input id="policy_visibility" type="checkbox" name="policy_visibility" checked > -->
|
||||||
|
<input id="policy_visibility" type="checkbox" name="enrolment_visibility" checked>
|
||||||
|
<span class="slider round" style="height: 27px;"></span>
|
||||||
|
</label>
|
||||||
|
Policy Visibilty in Enrollment App
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- <div class="form-group col-md-4">
|
||||||
<label class="switch" style="position: relative;top: 43px;left: 20px;">
|
<label class="switch" style="position: relative;top: 43px;left: 20px;">
|
||||||
<input id="policy_visibility" type="checkbox" name="enrolment_visibility" checked>
|
<input id="policy_visibility" type="checkbox" name="enrolment_visibility" checked>
|
||||||
<span class="slider round" style="height: 27px;"></span>
|
<span class="slider round" style="height: 27px;"></span>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<label for="policy_visibility" style="position: relative;bottom: 5px;left: 85px;">Policy Visibilty in Enrollment App</label>
|
<label for="policy_visibility" style="position: relative;bottom: 5px;left: 85px;">Policy Visibilty in Enrollment App</label>
|
||||||
</div>
|
</div> -->
|
||||||
|
|
||||||
<!-- <div class="form-group col-md-4">
|
<!-- <div class="form-group col-md-4">
|
||||||
<label class="switch" style="position: relative;top: 43px;left: 20px;">
|
<label class="switch" style="position: relative;top: 43px;left: 20px;">
|
||||||
@ -280,7 +363,7 @@
|
|||||||
<label for="is_member_modify_allowed" style="position: relative;bottom: 5px;left: 85px;"> In Enrollment Member Data Modification Allowed</label>
|
<label for="is_member_modify_allowed" style="position: relative;bottom: 5px;left: 85px;"> In Enrollment Member Data Modification Allowed</label>
|
||||||
</div> -->
|
</div> -->
|
||||||
|
|
||||||
<div class="form-group col-md-4">
|
<!-- <div class="form-group col-md-4">
|
||||||
<label class="switch" style="position: relative;top: 43px;left: 20px;">
|
<label class="switch" style="position: relative;top: 43px;left: 20px;">
|
||||||
<input id="is_lgbtq" type="checkbox" name="is_lgbtq">
|
<input id="is_lgbtq" type="checkbox" name="is_lgbtq">
|
||||||
<span class="slider round" style="height: 27px;"></span>
|
<span class="slider round" style="height: 27px;"></span>
|
||||||
@ -296,6 +379,23 @@
|
|||||||
</label>
|
</label>
|
||||||
|
|
||||||
<label for="is_premium_summery" style="position: relative;bottom: 5px;left: 85px;"> Is Premium Summary Display Enabled </label>
|
<label for="is_premium_summery" style="position: relative;bottom: 5px;left: 85px;"> Is Premium Summary Display Enabled </label>
|
||||||
|
</div> -->
|
||||||
|
|
||||||
|
<div class="form-group col-md-4" style="padding-top:50px;padding-bottom: 0px;">
|
||||||
|
<label for="is_lgbtq" style=" position: relative;bottom: 5px;">
|
||||||
|
<label class="switch">
|
||||||
|
<input id="is_lgbtq" type="checkbox" name="is_lgbtq" checked >
|
||||||
|
<span class="slider round" style="height: 27px;"></span>
|
||||||
|
</label>
|
||||||
|
Is LGBTQ Enable</label>
|
||||||
|
</div>
|
||||||
|
<div class="form-group col-md-4" style="padding-top:50px;padding-bottom: 0px;">
|
||||||
|
<label for="is_premium_summery" style=" position: relative;bottom: 5px;">
|
||||||
|
<label class="switch">
|
||||||
|
<input id="is_premium_summery" type="checkbox" name="is_premium_summery" checked>
|
||||||
|
<span class="slider round" style="height: 27px;"></span>
|
||||||
|
</label>
|
||||||
|
Is Premium Summary Display Enabled </label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user