public function registerAccountRecoveryAttempt(string $username, string $ip) : bool
{
$this->db->beginTransaction();
$this->db->insert('airship_failed_logins', ['action' => self::ACTION_RECOVER, 'occurred' => (new \DateTime())->format(\AIRSHIP_DATE_FORMAT), 'username' => $username, 'ipaddress' => $ip, 'subnet' => $this->getSubnet($ip)]);
return $this->db->commit();
}