You are here

function restrict_by_ip_user_login in Restrict Login or Role Access by IP Address 8.4

Same name and namespace in other branches
  1. 7.3 restrict_by_ip.module \restrict_by_ip_user_login()

Implements hook_user_login().

File

./restrict_by_ip.module, line 49
Restrict logins or roles to whitelisted IP addresses.

Code

function restrict_by_ip_user_login($account) {
  $login_firewall = \Drupal::service('restrict_by_ip.login_firewall');
  $login_firewall
    ->execute($account);
}