Files
flask-security/flask_security/templates/security/login.html
T
2012-08-16 18:04:34 -04:00

20 lines
769 B
HTML

{% from "security/_macros.html" import render_field_with_errors, render_field %}
{% include "security/_messages.html" %}
<h1>Login</h1>
<form action="{{ url_for_security('authenticate') }}" method="POST" name="login_form">
{{ login_form.hidden_tag() }}
{{ render_field_with_errors(login_form.email) }}
{{ render_field_with_errors(login_form.password) }}
{{ render_field_with_errors(login_form.remember) }}
{{ render_field(login_form.next) }}
{{ render_field(login_form.submit) }}
</form>
<h2>Help</h2>
<p>
{% if security.recoverable %}
<a href="{{ url_for_security('forgot_password') }}">Forgot password</a><br/>
{% endif %}
{% if security.confirmable %}
<a href="{{ url_for_security('send_confirmation') }}">Confirm account</a>
{% endif %}
</p>