aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-06-16 08:03:58 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-06-16 08:03:58 +0200
commitc2ad766641020930478917879d39ba61908c6fa1 (patch)
treef750c421701f4568fe546cfda28dd28a6d7598b1 /pyaggr3g470r/templates
parentUpdated translations. (diff)
downloadnewspipe-c2ad766641020930478917879d39ba61908c6fa1.tar.gz
newspipe-c2ad766641020930478917879d39ba61908c6fa1.tar.bz2
newspipe-c2ad766641020930478917879d39ba61908c6fa1.zip
Enables the user to recover its account when he has forgotten its password.
Diffstat (limited to 'pyaggr3g470r/templates')
-rw-r--r--pyaggr3g470r/templates/login.html2
-rw-r--r--pyaggr3g470r/templates/recover.html22
2 files changed, 24 insertions, 0 deletions
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 @@
</form>
</div>
<a href="/signup/" class="btn btn-default">{{ _('Sign up') }}</a>
+ &nbsp;
+ <a href="/recover" class="btn btn-default">{{ _('Forgot password') }}</a>
</div><!-- /.container -->
{% 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 %}
+<div class="container">
+ <div class="jumbotron">
+ <h2>{{ _('Recover your account') }}</h2>
+
+ {% for message in form.email.errors %}
+ <div class="flash">{{ message }}</div>
+ {% endfor %}
+
+ <form action="{{ url_for('recover') }}" method=post>
+ {{ form.hidden_tag() }}
+
+ <div class="form-group">
+ {{ form.email(class_="form-control", placeholder=_('Your email')) }}
+ </div>
+
+ {{ form.submit(class_="btn") }}
+ </form>
+ </div>
+</div><!-- /.container -->
+{% endblock %} \ No newline at end of file
bgstack15