You are here

public function CredentialsCheckFlood::clearHost in Commerce Core 8.2

Clears failed credential checks from the given host.

Parameters

string $ip: The client IP address.

Overrides CredentialsCheckFloodInterface::clearHost

File

src/CredentialsCheckFlood.php, line 76

Class

CredentialsCheckFlood
Provides flood protection for login credential checks.

Namespace

Drupal\commerce

Code

public function clearHost($ip) {
  $this->flood
    ->clear('user.failed_login_ip', $ip);
}