function login_security_save_pair in Login Security 5
Save the login attempt in the tracking database: user name and ip address.
Parameters
$name: user name to be tracked.
$ip: IP Address of the pair.
1 call to login_security_save_pair()
- login_security_validate in ./
login_security.module - Implementation of form validate. This functions does more than just validating, but it's main Intention is to break the login form flow.
File
- ./
login_security.module, line 310 - Login Security
Code
function login_security_save_pair($name, $ip) {
// Each fail attempt is kept for future minning of advanced bruteforcing
// like multiple IP or X-Forwarded-for usage and automated track data cleanup
db_query("INSERT INTO {login_security_track} (name, host, timestamp) VALUES ('%s', '%s', %d)", $name, $ip, time());
}