Skip to content

Instantly share code, notes, and snippets.

@pcustic
Created January 16, 2024 11:59
Show Gist options
  • Save pcustic/2695dfa25ba964b380f60d8501ea68d9 to your computer and use it in GitHub Desktop.
Save pcustic/2695dfa25ba964b380f60d8501ea68d9 to your computer and use it in GitHub Desktop.
auth/reset_password_request.html
<form action="" method="post" novalidate>
{{ form.hidden_tag() }}
<p>
{{ form.email.label }}<br>
{{ form.email(size=32) }}
{% for error in form.email.errors %}
<p style="color: red;">{{ error }}</p>
{% endfor %}
</p>
{% with messages = get_flashed_messages() %}
{% if messages %}
{% for message in messages %}
<p style="color: green;">{{ message }}</p>
{% endfor %}
{% endif %}
{% endwith %}
<p>{{ form.submit() }}</p>
</form>
<p>Go back <a href="{{ url_for('main.index') }}">home</a>.</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment