mirror of
https://github.com/wassname/flask-security.git
synced 2026-07-17 01:30:35 +08:00
20 lines
769 B
HTML
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> |