You are here

function login_security_user_login in Login Security 2.x

Same name and namespace in other branches
  1. 8 login_security.module \login_security_user_login()
  2. 7 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);
}