{% extends "base.html" %} {% block title %}Sign in ยท {{ app_name }}{% endblock %} {% block extra_head %} {% endblock %} {% block content %} {# Framework template (feather/auth/email_link.py): styled here so it works in any app. Override it with templates/auth/email_sign_in.html in your own app. #}
{% if state == "form" %}

Sign in to {{ app_name }}

Enter your email address and we'll send you a code to sign in. No password needed.

{% if error %}{% endif %}
{% elif state == "code" %}

Check your email

Enter the {{ code_length }}-digit code we sent to {{ email }}. It expires in {{ minutes }} minutes.

{% if error %}{% endif %} {% if notice %}

{{ notice }}

{% endif %}
Use a different email
{% else %}

{{ "Too many tries" if reason == "attempts" else "This code has expired" }}

{% if reason == "attempts" %}That code had too many wrong tries, so it no longer works.{% else %}Codes work once and expire after {{ minutes }} minutes.{% endif %} Ask for a new one.

Get a new code {% endif %}
{% endblock %}