SproutCMS

This is the code documentation for the SproutCMS project

function checkRateLimit()

Does a rate-limit check for admin logins against the login_attempts table

Usage

bool|array AdminAuth::checkRateLimit ( mixed $username , mixed $ip );

Arguments

  1. $username
  2. $ip

Return value

  • array
    If the rate limit has been hit. Keys: 0 => problematic field, 1 => max rate
  • bool
    True if things are OK and the rate limit hasn't yet been hit