You are here

public function LoginFirewallInterface::isLoginAllowed in Restrict Login or Role Access by IP Address 8.4

Checks that a user is allowed to login based on IP whitelists.

Parameters

\Drupal\Core\Session\AccountInterface $account: The user to check if login is allowed.

Return value

bool Whether login is allowed or not.

1 method overrides LoginFirewallInterface::isLoginAllowed()
LoginFirewall::isLoginAllowed in src/LoginFirewall.php
Checks that a user is allowed to login based on IP whitelists.

File

src/LoginFirewallInterface.php, line 23

Class

LoginFirewallInterface
Interface LoginFirewallInterface.

Namespace

Drupal\restrict_by_ip

Code

public function isLoginAllowed(AccountInterface $account);