concrete/src/Permission/IPService.php
public function deleteFailedLoginAttempts($maxAge = null)
    {
        $sql = 'DELETE FROM FailedLoginAttempts';
        if ($maxAge) {
            $platform = $this->connection->getDatabasePlatform();
            $sql .= ' WHERE flaTimestamp <= ' . $platform->getDateSubSecondsExpression($platform->getNowExpression(), (int) $maxAge);
        }

        return (int) $this->connection->executeQuery($sql)->rowCount();
    }
public function deleteFailedLoginAttempts($maxAge = null)
    {
        $sql = 'DELETE FROM FailedLoginAttempts';
        if ($maxAge) {
            $platform = $this->connection->getDatabasePlatform();
            $sql .= ' WHERE flaTimestamp <= ' . $platform->getDateSubSecondsExpression($platform->getNowExpression(), (int) $maxAge);
        }

        return (int) $this->connection->executeQuery($sql)->rowCount();
    }
public function deleteFailedLoginAttempts ( $ maxAge = null ) { $ sql = 'DELETE FROM FailedLoginAttempts' ; if ( $ maxAge ) { $ platform = $ this -> connection -> getDatabasePlatform ( ) ; $ sql .= ' WHERE flaTimestamp <= ' . $ platform -> getDateSubSecondsExpression ( $ platform -> getNowExpression ( ) , ( int ) $ maxAge ) ; } return ( int ) $ this -> connection -> executeQuery ( $ sql ) -> rowCount ( ) ; }
Delete the failed login attempts.

@param int|null $maxAge the maximum age (in seconds) of the records (specify an empty value do delete all records)

@return int return the number of records deleted
Delete the failed login attempts .