public function logFailedLogin(AddressInterface $ip = null, $ignoreConfig = false)
    {
        if ($ignoreConfig || $this->config->get('concrete.security.ban.ip.enabled')) {
            if ($ip === null) {
                $ip = $this->getRequestIPAddress();
            }
            $comparableIP = $ip->getComparableString();
            $this->connection->executeQuery(
                '
                    INSERT INTO FailedLoginAttempts
                        (flaIp, flaTimestamp)
                    VALUES
                        (?, ' . $this->connection->getDatabasePlatform()->getNowExpression() . ')
                ',
                [$ip->getComparableString()]
            );
            $this->logger->notice(t('Failed login attempt recorded from IP address %s', $ip->toString(), ['ip_address' => $ip->toString()]));
        }
    }