You are here

public function CredentialsCheckFlood::clearAccount in Commerce Core 8.2

Clears failed credential checks by the given user.

Parameters

string $ip: The client IP address.

string $name: The account name.

Overrides CredentialsCheckFloodInterface::clearAccount

File

src/CredentialsCheckFlood.php, line 83

Class

CredentialsCheckFlood
Provides flood protection for login credential checks.

Namespace

Drupal\commerce

Code

public function clearAccount($ip, $name) {
  if ($identifier = $this
    ->getAccountIdentifier($ip, $name)) {
    $this->flood
      ->clear('user.failed_login_user', $identifier);
  }
}