{% set title = title|default(_fsdomain('Username Recovery')) %}
{% extends "security/base.html" %}
{% from "security/_macros.html" import render_field_with_errors, render_field, render_field_errors, render_form_errors %}

{% block content %}
  {% include "security/_messages.html" %}
  <h1>{{ _fsdomain('Username Recovery') }}</h1>
  <form action="{{ url_for_security('recover_username') }}" method="post" name="username_recovery_form">
    {{ username_recovery_form.hidden_tag() }}
    {{ render_form_errors(username_recovery_form) }}
    {{ render_field_with_errors(username_recovery_form.email) }}
    {{ render_field_errors(username_recovery_form.csrf_token) }}
    {{ render_field(username_recovery_form.submit) }}
  </form>
  {% include "security/_menu.html" %}
{% endblock content %}
