function login_security_user_login in Login Security 8
Same name and namespace in other branches
- 7 login_security.module \login_security_user_login()
- 2.x login_security.module \login_security_user_login()
Implements hook_user_login().
File
- ./
login_security.module, line 26 - Login Security module hooks.
Code
function login_security_user_login(UserInterface $account) {
$ip_address = Drupal::request()
->getClientIp();
_login_security_remove_events($account
->getAccountName(), $ip_address);
}