Refuse password changes (and tell the user) if the notification email cannot be sent. Fixes #2892

This commit is contained in:
Harshal Dhumal
2017-11-30 11:16:38 +00:00
committed by Dave Page
parent 2995d6e9c5
commit 35a5cf22d5
9 changed files with 234 additions and 21 deletions
@@ -2,7 +2,7 @@
{% block panel_title %}{{ _('Recover %(appname)s Password', appname=config.APP_NAME) }}{% endblock %}
{% block panel_body %}
<p>{{ _('Enter the email address for the user account you wish to recover the password for:') }}</p>
<form action="{{ url_for_security('forgot_password') }}" method="POST" name="forgot_password_form">
<form action="{{ url_for('browser.forgot_password') }}" method="POST" name="forgot_password_form">
{{ forgot_password_form.hidden_tag() }}
<fieldset>
{{ render_field_with_errors(forgot_password_form.email, "text") }}