Add optional setting to boost last login query - refs #6990