You are here

public function CredentialsCheckFloodInterface::isAllowedHost in Commerce Core 8.2

Whether or not a client machine is allowed to perform a credentials check.

Independent of the per-user limit to catch attempts from one IP to log in to many different user accounts. We have a reasonably high limit since there may be only one apparent IP for all users at an institution.

Parameters

string $ip: The client IP address.

Return value

bool TRUE if credentials check is allowed, FALSE otherwise.

1 method overrides CredentialsCheckFloodInterface::isAllowedHost()
CredentialsCheckFlood::isAllowedHost in src/CredentialsCheckFlood.php
Whether or not a client machine is allowed to perform a credentials check.

File

src/CredentialsCheckFloodInterface.php, line 51

Class

CredentialsCheckFloodInterface
Provides a flood service tailored to login credential checks.

Namespace

Drupal\commerce

Code

public function isAllowedHost($ip);