{% extends "account/base_entrance.html" %} {% load allauth i18n lucide ui %} {% comment %} Overridden for layout: "Remember Me" sits on the button row rather than floating as a third field, and the passkey button sits beside Sign In instead of below a rule. The passkey button submits a *different* form (the hidden `mfa_login` rendered by the webauthn snippet in extra_body) via the `form` attribute — forms cannot nest, so it can live inside the login form and still post elsewhere. {% endcomment %} {% block head_title %} {% trans "Sign In" %} {% endblock head_title %} {% block content %} {% element h1 %} {% trans "Sign In" %} {% endelement %}
{% if LOGIN_BY_CODE_ENABLED %} {% element hr %} {% endelement %} {% element button href=request_login_code_url tags="prominent,login,outline,primary" %} {% trans "Send me a sign-in code" %} {% endelement %} {% endif %} {% endblock content %} {% block extra_body %} {{ block.super }} {% if PASSKEY_LOGIN_ENABLED %} {% include "mfa/webauthn/snippets/login_script.html" with button_id="passkey_login" %} {% endif %} {% endblock extra_body %}