Files
flask-security/flask_security/templates/security/login.html
T

20 lines
770 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.confirmabled %}
<a href="{{ url_for_security('send_confirmation') }}">Confirm account</a>
{% endif %}
</p>