diff --git a/app/Controllers/RestAuthenticationController.php b/app/Controllers/RestAuthenticationController.php index 0c2089b6..b2567d9c 100755 --- a/app/Controllers/RestAuthenticationController.php +++ b/app/Controllers/RestAuthenticationController.php @@ -484,7 +484,7 @@ class RestAuthenticationController extends AdminController $this->authHistoryModel->insert($data); } - + $employeeData['token_type'] = "post"; $result = JWTToken::encode($employeeData); if(isset($this->request->getJSON()->otp)){ @@ -1081,6 +1081,7 @@ class RestAuthenticationController extends AdminController ]); } + $employeeData['token_type'] = "post"; $token = JWTToken::encode($employeeData); log_message('error', ' ');