From c2ad766641020930478917879d39ba61908c6fa1 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Mon, 16 Jun 2014 08:03:58 +0200 Subject: Enables the user to recover its account when he has forgotten its password. --- pyaggr3g470r/templates/login.html | 2 ++ pyaggr3g470r/templates/recover.html | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 pyaggr3g470r/templates/recover.html (limited to 'pyaggr3g470r/templates') diff --git a/pyaggr3g470r/templates/login.html b/pyaggr3g470r/templates/login.html index 0a3bec2e..e58b5d83 100644 --- a/pyaggr3g470r/templates/login.html +++ b/pyaggr3g470r/templates/login.html @@ -27,5 +27,7 @@ {{ _('Sign up') }} +   + {{ _('Forgot password') }} {% endblock %} \ No newline at end of file diff --git a/pyaggr3g470r/templates/recover.html b/pyaggr3g470r/templates/recover.html new file mode 100644 index 00000000..8e690bdb --- /dev/null +++ b/pyaggr3g470r/templates/recover.html @@ -0,0 +1,22 @@ +{% extends "layout.html" %} +{% block content %} +
+
+

{{ _('Recover your account') }}

+ + {% for message in form.email.errors %} +
{{ message }}
+ {% endfor %} + +
+ {{ form.hidden_tag() }} + +
+ {{ form.email(class_="form-control", placeholder=_('Your email')) }} +
+ + {{ form.submit(class_="btn") }} +
+
+
+{% endblock %} \ No newline at end of file -- cgit