diff --git a/app/Controllers/RestAuthenticationController.php b/app/Controllers/RestAuthenticationController.php index c6ea35c..02bf50f 100755 --- a/app/Controllers/RestAuthenticationController.php +++ b/app/Controllers/RestAuthenticationController.php @@ -873,6 +873,7 @@ class RestAuthenticationController extends AdminController // Call the third-party API function $apiResponse = $this->callThirdPartyAPI($this->request->getJSON(),'getVerifiedHrData'); + recordRateLimitFailure(); return $this->respond(['status' => 'failed','code' => 404,'data' => "" , 'post_enrollment'=> json_decode($apiResponse, true)],200); } @@ -881,6 +882,7 @@ class RestAuthenticationController extends AdminController // Call the third-party API function $apiResponse = $this->callThirdPartyAPI($this->request->getJSON(),'getVerifiedHrData'); + recordRateLimitFailure(); return $this->respond(['status' => 'failed','code' => 404,'data' => "" , 'post_enrollment'=> json_decode($apiResponse, true)],200); } } catch (\Exception $e) { diff --git a/app/Helpers/utility_helper.php b/app/Helpers/utility_helper.php index bac046f..b07a22c 100755 --- a/app/Helpers/utility_helper.php +++ b/app/Helpers/utility_helper.php @@ -877,6 +877,7 @@ function generateFingerprint(bool $exclude_ua = false): string // Record user-level failure if (!empty($identity)) { + log_message('error','user block called in recordRateLimitFailure with' .$identity.' - '. $context ); $limiter->recordUserFailure($identity, $context); } } \ No newline at end of file