Example #1
0
 def test_success(self):
     token = 'token'
     app_id = 'app_id'
     response = passwordless.save(app_id, token)
     self.assertIsInstance(response, RedirectResponse)
     app = facade.get_passwordless_app_data()()
     self.assertEqual(app_id, app.app_id)
     self.assertEqual(token, app.token)
Example #2
0
 def test_success(self):
     token = 'token'
     app_id = 'app_id'
     response = passwordless.save(app_id, token)
     self.assertIsInstance(response, RedirectResponse)
     app = facade.get_passwordless_app_data()()
     self.assertEqual(app_id, app.app_id)
     self.assertEqual(token, app.token)
Example #3
0
def form():
    app = facade.get_passwordless_app_data().execute().result
    dct = {'save_app_path': router.to_path(save), 'app': app}
    return TemplateResponse(dct)
Example #4
0
def form(_write_tmpl):
    app = facade.get_passwordless_app_data().execute().result
    dct = {'salvar_app_path': router.to_path(salvar), 'app': app}
    _write_tmpl('login/passwordless_form.html', dct)
Example #5
0
def form():
    app = facade.get_passwordless_app_data().execute().result
    dct = {'save_app_path': router.to_path(save), 'app': app}
    return TemplateResponse(dct, 'login/passwordless/form.html')