{% extends "base.html" %} {% block content %}

{% if reauth %}{{ gettext("Re-authenticate") }}{% else %}{{ gettext("Sign In") }}{% endif %}

{% if reauth %}

{{ gettext("Please verify your identity to continue.") }}

{% endif %}
{{ form.hidden_tag() }} {% if reauth %} {{ form.username(size=80, id="username", class="", readonly=true, value=reauth_username) }} {% else %} {{ form.username(size=80, id="username", class="") }} {% endif %} {% for error in form.username.errors %} [{{ error }}] {% endfor %} {# In reauth mode the label + button set follow the SSO token the user actually logged in with -- OTP tokens get an OTP label, smartcard/FIDO2 hides the password field entirely because a static password wouldn't verify against them. #} {% if not reauth or reauth_token_pass_type != 'smartcard' %} {{ form.password(size=80, id="password", class="") }} {% for error in form.password.errors %} [{{ error }}] {% endfor %} {% endif %}
{% if not reauth and show_recover_link %} {% endif %}
{% endblock %}