Example #1
0
def index(ret_path='/'):
    g_path = router.to_path(google.index, ret_path=ret_path)
    dct = {'login_google_path': users.create_login_url(g_path),
           'login_passwordless_path': router.to_path(send_email, ret_path=ret_path),
           'login_facebook_path': router.to_path(facebook.index, ret_path=ret_path),
           'faceapp': facade.get_facebook_app_data().execute().result}
    return TemplateResponse(dct, 'login/home.html')
Example #2
0
def index(_write_tmpl, ret_path='/'):
    g_path = router.to_path(google.index, ret_path=ret_path)
    dct = {'login_google_path': users.create_login_url(g_path),
           'login_passwordless_path': router.to_path(enviar_email,ret_path=ret_path),
           'login_facebook_path': router.to_path(facebook.index,ret_path=ret_path),
           'faceapp': facade.get_facebook_app_data().execute().result}
    _write_tmpl('login/home.html', dct)
Example #3
0
def index(ret_path="/"):
    g_path = router.to_path(google.index, ret_path=ret_path)
    dct = {
        "login_google_path": users.create_login_url(g_path),
        "login_passwordless_path": router.to_path(send_email, ret_path=ret_path),
        "login_facebook_path": router.to_path(facebook.index, ret_path=ret_path),
        "faceapp": facade.get_facebook_app_data().execute().result,
    }
    return TemplateResponse(dct)
Example #4
0
def form():
    app = facade.get_facebook_app_data().execute().result
    dct = {'save_app_path': router.to_path(save), 'app': app}
    return TemplateResponse(dct)
Example #5
0
def form():
    app = facade.get_facebook_app_data().execute().result
    dct = {'save_app_path': router.to_path(save), 'app': app}
    return TemplateResponse(dct)
Example #6
0
def form(_write_tmpl):
    app = facade.get_facebook_app_data().execute().result
    dct = {'salvar_app_path': router.to_path(save), 'app': app}
    _write_tmpl('login/facebook_form.html', dct)