mirror of
https://github.com/wassname/flask-security.git
synced 2026-06-30 16:40:04 +08:00
Update template a bit
This commit is contained in:
@@ -1 +1,7 @@
|
||||
Resend confirmation instructions...
|
||||
{% include "../messages.html" %}
|
||||
<h1>Resend confirmation instructions</h1>
|
||||
<form action="{{ url_for('flask_security.confirm') }}" method="POST" name="reset_confirmation_form">
|
||||
{{ reset_confirmation_form.hidden_tag() }}
|
||||
{{ reset_confirmation_form.email.label }} {{ reset_confirmation_form.email }}
|
||||
{{ reset_confirmation_form.submit }}
|
||||
</form>
|
||||
@@ -1,3 +1,5 @@
|
||||
{% include "../messages.html" %}
|
||||
<h1>Login</h1>
|
||||
<form action="{{ url_for('flask_security.authenticate') }}" method="POST" name="login_form">
|
||||
{{ form.hidden_tag() }}
|
||||
{{ form.email.label }} {{ form.email }}<br/>
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{%- with messages = get_flashed_messages(with_categories=true) -%}
|
||||
{% if messages %}
|
||||
<ul class=flashes>
|
||||
{% for category, message in messages %}
|
||||
<li class="{{ category }}">{{ message }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{%- endwith %}
|
||||
@@ -1,3 +1,5 @@
|
||||
{% include "../messages.html" %}
|
||||
<h1>Change password</h1>
|
||||
<form action="{{ url_for('flask_security.reset') }}" method="POST" name="reset_password_form">
|
||||
{{ reset_password_form.hidden_tag() }}
|
||||
{{ reset_password_form.password.label }} {{ reset_password_form.password }}<br/>
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
{% include "../messages.html" %}
|
||||
<h1>Send reset password instructions</h1>
|
||||
<form action="{{ url_for('flask_security.forgot') }}" method="POST" name="forgot_password_form">
|
||||
{{ forgot_password_form.hidden_tag() }}
|
||||
{{ forgot_password_form.email.label }} {{ forgot_password_form.email }}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
{% include "../messages.html" %}
|
||||
<h1>Edit account</h1>
|
||||
<form action="{{ url_for('flask_security.update_user') }}" method="POST" name="edit_user_form">
|
||||
{{ edit_user_form.hidden_tag() }}
|
||||
{{ edit_user_form.email.label }} {{ edit_user_form.email }}<br/>
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
{% include "../messages.html" %}
|
||||
<h1>Register</h1>
|
||||
<form action="{{ url_for('flask_security.register') }}" method="POST" name="register_user_form">
|
||||
{{ register_user_form.hidden_tag() }}
|
||||
{{ register_user_form.email.label }} {{ register_user_form.email }}<br/>
|
||||
|
||||
Reference in New Issue
Block a user