Esempio n. 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')
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)