{% extends "security/base.html" %} {% from "security/_macros.html" import render_field_with_errors, render_field, render_field_errors, render_form_errors, prop_next %} {% block content %} {% include "security/_messages.html" %}

{{ _fsdomain('Login') }}

{{ login_user_form.hidden_tag() }} {{ render_form_errors(login_user_form) }} {% if "email" in identity_attributes %}{{ render_field_with_errors(login_user_form.email) }}{% endif %} {% if login_user_form.username and "username" in identity_attributes %} {% if "email" in identity_attributes %}

{{ _fsdomain("or") }}

{% endif %} {{ render_field_with_errors(login_user_form.username) }} {% endif %}
{{ render_field_with_errors(login_user_form.password) }}
{{ render_field_with_errors(login_user_form.remember) }} {{ render_field_errors(login_user_form.csrf_token) }} {{ render_field(login_user_form.submit) }}
{% if security.webauthn %}

{{ _fsdomain("Use WebAuthn to Sign In") }}

{% endif %} {% if security.oauthglue %}

{{ _fsdomain("Use Social Oauth to Sign In") }}

{% for provider in security.oauthglue.provider_names %}
{% if csrf_token is defined %} {% endif %}
{% endfor %} {% endif %} {% include "security/_menu.html" %} {% endblock content %}