コード例 #1
0
def google():
    """ Login using Google """

    if not auth.settings.google:
        redirect(URL(f="user", args=request.args, vars=request.vars))

    from s3oauth import GooglePlusAccount
    auth.settings.login_form = GooglePlusAccount()
    form = auth()

    return dict(form=form)
コード例 #2
0
ファイル: default.py プロジェクト: xprimus/eden
def google():
    """ Login using Google """

    channel = settings.get_auth_google()

    if not channel:
        redirect(URL(f="user", args=request.args, vars=get_vars))

    from s3oauth import GooglePlusAccount
    auth.settings.login_form = GooglePlusAccount(channel)
    form = auth()

    return dict(form=form)