changeset 240:6b8153a4537e stable

Fix password reset template.
author Daniele Nicolodi <daniele@grinta.net>
date Fri, 16 Dec 2011 18:55:20 +0100
parents 4d218e82d203
children 32c4e938787e
files src/ltpdarepo/templates/users/password.html src/ltpdarepo/views/profile.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/ltpdarepo/templates/users/password.html	Tue Dec 13 18:51:43 2011 +0100
+++ b/src/ltpdarepo/templates/users/password.html	Fri Dec 16 18:55:20 2011 +0100
@@ -1,8 +1,8 @@
 {% import 'forms.html' as forms %}
 {% extends "layout.html" %}
-{% block title %}User {{ session.username }}{% endblock %}
+{% block title %}User {{ username }}{% endblock %}
 {% block body %}
-<h2>New user &#x00AB;{{ session.username }}&#x00BB; password</h2>
+<h2>User &#x00AB;{{ username }}&#x00BB; password</h2>
 <p class="discrete">Please choose a safe password</p>
 {{ forms.render(form) }}
 {% endblock %}
--- a/src/ltpdarepo/views/profile.py	Tue Dec 13 18:51:43 2011 +0100
+++ b/src/ltpdarepo/views/profile.py	Fri Dec 16 18:55:20 2011 +0100
@@ -121,6 +121,6 @@
             user.passwd(form.password.data)
             flash('Password set.')
             return redirect(url_for('user.view', username=username))
-        return render_template('users/password.html', form=form)
+        return render_template('users/password.html', username=username, form=form)
 
 module = app