{% extends "account/base_entrance.html" %} {% load i18n %} {% load allauth account %} {% comment %} allauth 65.19.4's page, taken apart so an entrance layout can place the heading, the form, the buttons that skip the form and the sign-up link. {% endcomment %} {% block head_title %} {% trans "Sign In" %} {% endblock head_title %} {% block heading %}{% trans "Sign in" %}{% endblock heading %} {% block content %} {% if not SOCIALACCOUNT_ONLY %} {% url 'account_login' as login_url %} {% element form form=form method="post" action=login_url tags="entrance,login" %} {% slot body %} {% csrf_token %} {% element fields form=form unlabeled=True %} {% endelement %} {{ redirect_field }} {% endslot %} {% slot actions %} {% element button type="submit" tags="prominent,login" %} {% trans "Sign In" %} {% endelement %} {% endslot %} {% endelement %} {% endif %} {% endblock content %} {% block providers %} {% if PASSKEY_LOGIN_ENABLED %} {% element button type="submit" form="mfa_login" id="passkey_login" tags="prominent,login,outline,primary" %} {% trans "Sign in with a passkey" %} {% endelement %} {% endif %} {% if LOGIN_BY_CODE_ENABLED %} {% element button href=request_login_code_url tags="prominent,login,outline,primary" %} {% trans "Send me a sign-in code" %} {% endelement %} {% endif %} {% if SOCIALACCOUNT_ENABLED %} {% include "socialaccount/snippets/provider_list.html" with process="login" %} {% include "socialaccount/snippets/login_extra.html" %} {% endif %} {% endblock providers %} {% block footer %} {% if not SOCIALACCOUNT_ONLY %} {% trans "No account yet?" %} {% trans "Create one" %} {% endif %} {% endblock footer %} {% 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 %}