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)
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)