public function FloodUnblockCommands::unblockUser in Flood control 2.0.x
Clears the floods based on user.
@command flood_unblock:user @usage flood_unblock:user
Parameters
string $user: User to clear...
File
- src/
Commands/ FloodUnblockCommands.php, line 54
Class
- FloodUnblockCommands
- Flood unblock. module's Drush 9 commands.
Namespace
Drupal\flood_control\CommandsCode
public function unblockUser($user = NULL) {
$this->manager
->floodUnblockClearEvent('user.failed_login_user', $user);
$this->manager
->floodUnblockClearEvent('user.http_login', $user);
$this
->output()
->writeln('Done');
}