Ejemplo n.º 1
0
def facebook():
    """ Login using Facebook """

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

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

    return dict(form=form)
Ejemplo n.º 2
0
def facebook():
    """ Login using Facebook """

    channel = s3db.msg_facebook_login()

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

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

    return dict(form=form)