1 user.module user_user_flood_control($ip, $username = FALSE)

Implements hook_user_flood_control().

File

core/modules/user/user.module, line 1995
Enables the user registration and login system.

Code

function user_user_flood_control($ip, $username = FALSE) {
  if (config_get('user.flood', 'flood_log_failed_attempts')) {
    if (!empty($username)) {
      watchdog('user', 'Flood control blocked login attempt for %user from %ip.', array('%user' => $username, '%ip' => $ip));
    }
    else {
      watchdog('user', 'Flood control blocked login attempt from %ip.', array('%ip' => $ip));
    }
  }
}