SproutCMS

This is the code documentation for the SproutCMS project

class RateLimit

Rate-limiting system, to prefent people form doing hacky stuff

Source code (6 results)

/sprout/Controllers/AdminController.php   Highlighted file source

Line 194: $result = AdminAuth::checkRateLimit($_POST['Username'], Request::userIp());

/sprout/Controllers/AdminController.php   Highlighted file source

Line 194: $result = AdminAuth::checkRateLimit($_POST['Username'], Request::userIp());

/sprout/Controllers/EmailShareController.php   Highlighted file source

Line 25: use Sprout\Helpers\RateLimit;
Line 135: $result = RateLimit::checkLimitIP('email-share-action', null, 25, 10 * 60);
Line 170: RateLimit::logHitFailure('email-share-action');
Line 190: RateLimit::logHitSuccess('email-share-action');

/sprout/Controllers/EmailShareController.php   Highlighted file source

Line 25: use Sprout\Helpers\RateLimit;
Line 135: $result = RateLimit::checkLimitIP('email-share-action', null, 25, 10 * 60);
Line 170: RateLimit::logHitFailure('email-share-action');
Line 190: RateLimit::logHitSuccess('email-share-action');

/sprout/Helpers/AdminAuth.php   Highlighted file source

Line 318: public static function checkRateLimit($username, $ip)

A total of 12 lines in 6 files were found