protected function addAttempt()
{
$ip = $this->getIp();
$attempt_expiredate = date("Y-m-d H:i:s", strtotime($this->config->attack_mitigation_time));
$query = $this->dbh->prepare("INSERT INTO {$this->config->table_attempts} (ip, expiredate) VALUES (?, ?)");
return $query->execute(array($ip, $attempt_expiredate));
}