def METHOD_NAME(request, next_page):
    '''
    Common logic to set up these views: make sure Django auth is done and check our conditions.
    '''
    if not next_page and 'next' in request.GET:
        next_page = request.GET['next']
    if not next_page:
        next_page = get_redirect_url(request)
    if not request.maybe_stale_user.is_authenticated:
        # Not authenticated at all. Force standard-Django auth.
        return next_page, False, False
    good_auth, good_2fa = request.session_info.okay_auth(request, request.maybe_stale_user)
    return next_page, good_auth, good_2fa