2024-12-16 17:17:42 +00:00
|
|
|
{# Password forgotten page.
|
|
|
|
|
|
|
|
This page displays a form asking for the email address of users who cannot remember their password.
|
|
|
|
#}
|
2021-10-28 13:24:34 +00:00
|
|
|
{% extends theme('base.html') %}
|
2023-03-28 18:37:16 +00:00
|
|
|
{% import 'macro/form.html' as fui %}
|
2020-10-22 15:37:01 +00:00
|
|
|
|
2023-03-16 18:30:30 +00:00
|
|
|
{%- block title -%}
|
|
|
|
{%- trans -%}Forgotten password{%- endtrans -%}
|
|
|
|
{%- endblock -%}
|
2023-03-10 00:02:36 +00:00
|
|
|
|
2020-10-22 15:37:01 +00:00
|
|
|
{% block content %}
|
2021-12-20 22:57:27 +00:00
|
|
|
<div class="loginform">
|
2024-05-21 16:08:44 +00:00
|
|
|
{% block header %}
|
|
|
|
<h3 class="ui top attached header">
|
|
|
|
{% if logo_url %}
|
|
|
|
<img class="ui image" src="{{ logo_url }}">
|
|
|
|
{% endif %}
|
|
|
|
<div class="content">
|
|
|
|
{% trans %}Forgotten password{% endtrans %}
|
|
|
|
</div>
|
|
|
|
</h3>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block message %}
|
|
|
|
<div class="ui attached message">
|
|
|
|
{% trans %}
|
|
|
|
After this form is sent, if the email address or the login you provided
|
|
|
|
exists, you will receive an email containing a link that will allow you
|
|
|
|
to reset your password.
|
|
|
|
{% endtrans %}
|
2021-12-20 22:57:27 +00:00
|
|
|
</div>
|
2024-05-21 16:08:44 +00:00
|
|
|
{% endblock %}
|
2020-10-31 17:22:24 +00:00
|
|
|
|
2021-12-20 22:57:27 +00:00
|
|
|
<div class="ui attached clearing segment">
|
2023-03-28 21:12:54 +00:00
|
|
|
{% call fui.render_form(form) %}
|
2024-05-21 16:08:44 +00:00
|
|
|
{% block fields %}
|
|
|
|
{{ fui.render_field(form.login, icon="user") }}
|
|
|
|
{% endblock %}
|
2020-10-22 15:37:01 +00:00
|
|
|
|
2024-05-21 16:08:44 +00:00
|
|
|
{% block buttons %}
|
|
|
|
<div class="ui right aligned container">
|
|
|
|
<div class="ui stackable buttons">
|
|
|
|
{% if features.has_registration %}
|
|
|
|
<a type="button" class="ui right floated button" href="{{ url_for('core.account.join') }}">{{ _("Create an account") }}</a>
|
2021-12-20 22:57:27 +00:00
|
|
|
{% endif %}
|
2024-05-21 16:08:44 +00:00
|
|
|
<a type="button" class="ui right floated button" href="{{ url_for('core.auth.login') }}">{{ _("Login page") }}</a>
|
|
|
|
<button type="submit" class="ui right floated {% if request.method != "POST" or form.errors %}primary {% endif %}button">
|
|
|
|
{% if request.method == "POST" %}
|
|
|
|
{{ _("Send again") }}
|
|
|
|
{% else %}
|
|
|
|
{{ _("Send") }}
|
|
|
|
{% endif %}
|
|
|
|
</button>
|
|
|
|
</div>
|
2021-12-20 22:57:27 +00:00
|
|
|
</div>
|
2024-05-21 16:08:44 +00:00
|
|
|
{% endblock %}
|
2023-03-28 21:12:54 +00:00
|
|
|
{% endcall %}
|
2021-12-20 22:57:27 +00:00
|
|
|
</div>
|
2020-10-22 15:37:01 +00:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|