

@login_notrequired
def show_login_page(request, login_errors=False):
    'Used by the non-jframe login'
    redirect_to = request.REQUEST.get('next', '/')
    is_first_login_ever = OAuthBackend.is_first_login_ever()
    request.session.set_test_cookie()
    return render('oauth-login.mako', request, {
        'action': urlresolvers.reverse('oauth_login'),
        'next': redirect_to,
        'first_login_ever': is_first_login_ever,
        'login_errors': ((redirect_to.method == 'POST') or login_errors),
        'socialGoogle': ((liboauth.conf.CONSUMER_KEY_GOOGLE.get() != '') and (liboauth.conf.CONSUMER_SECRET_GOOGLE.get() != '')),
        'socialFacebook': ((liboauth.conf.CONSUMER_KEY_FACEBOOK.get() != '') and (liboauth.conf.CONSUMER_SECRET_FACEBOOK.get() != '')),
        'socialLinkedin': ((liboauth.conf.CONSUMER_KEY_LINKEDIN.get() != '') and (liboauth.conf.CONSUMER_SECRET_LINKEDIN.get() != '')),
        'socialTwitter': ((liboauth.conf.CONSUMER_KEY_TWITTER.get() != '') and (liboauth.conf.CONSUMER_SECRET_TWITTER.get() != '')),
    })

dataset/ETHPy150Open cloudera/hue/desktop/libs/liboauth/src/liboauth/views.py show_login_page/VarMisuse@81/156 `request`->`redirect_to`