Login

{% if error %}

Error

{{ msg }}

{% end %} {% set kwargs = handler.kwargs %} {% try %}{% set user = kwargs.user.arg %}{% except %}{% set user = 'user' %}{% end %} {% try %}{% set password = kwargs.password.arg %}{% except %}{% set password = 'password' %}{% end %}
{% if email is None or error %}

{% else %}

We sent an email to {{ email }} with a link to log in.

{% end %}
{% if 'recaptcha' in kwargs %} {% import os, gramex.cache, gramex.handlers %} {{ gramex.cache.open(os.path.join(gramex.handlers._folder, 'auth.recaptcha.template.html'), 'text') }} {% end %}