# HG changeset patch # User Daniele Nicolodi # Date 1324058120 -3600 # Node ID 6b8153a4537ea75c501d4b4c5f42c6759931edfb # Parent 4d218e82d2032486238192296c1cff81b279f468 Fix password reset template. diff -r 4d218e82d203 -r 6b8153a4537e src/ltpdarepo/templates/users/password.html --- 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 %} -

New user «{{ session.username }}» password

+

User «{{ username }}» password

Please choose a safe password

{{ forms.render(form) }} {% endblock %} diff -r 4d218e82d203 -r 6b8153a4537e src/ltpdarepo/views/profile.py --- 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