function _auto_login_url_register_flood in Auto Login URL 7
Register flood event for this IP.
Parameters
string $hash: Code that passes through URL.
2 calls to _auto_login_url_register_flood()
- _auto_login_url_access in ./
auto_login_url.module - Access check for Auto login the user.
- _auto_login_url_page in ./
auto_login_url.module - Auto login the user.
File
- ./
auto_login_url.module, line 195 - Main file for auto_login_url module.
Code
function _auto_login_url_register_flood($hash) {
// Register flood event.
flood_register_event('failed_login_attempt_ip', variable_get('user_failed_login_ip_window', 3600));
// Log error.
watchdog('auto_login_url', 'Failed Auto Login URL from ip: @ip and hash: @hash', array(
'@ip' => ip_address(),
'@hash' => $hash,
));
}