From f4a2f263c1980f8de6f6d62ce7d07169e532bff8 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Thu, 10 Jan 2013 18:13:52 +0100 Subject: error() is called when the password can't be changed. --- source/pyAggr3g470r.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py index fd6f024b..df63ff99 100755 --- a/source/pyAggr3g470r.py +++ b/source/pyAggr3g470r.py @@ -525,10 +525,10 @@ class pyAggr3g470r(object): result = change_password(self.auth.username, new_password) if result: message = "

Your password has been changed.

" + tmpl = lookup.get_template("confirmation.html") + return tmpl.render(message=message) else: - message = "

Impossible to change the password.

" - tmpl = lookup.get_template("confirmation.html") - return tmpl.render(message=message) + return self.error("

Impossible to change the password.

") change_password.exposed = True -- cgit