diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-01-10 18:13:52 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-01-10 18:13:52 +0100 |
commit | f4a2f263c1980f8de6f6d62ce7d07169e532bff8 (patch) | |
tree | e643f28aa33e85f3b7163f3371bfd2f3e27999e2 /source/pyAggr3g470r.py | |
parent | Updated header information for auth.py. (diff) | |
download | newspipe-f4a2f263c1980f8de6f6d62ce7d07169e532bff8.tar.gz newspipe-f4a2f263c1980f8de6f6d62ce7d07169e532bff8.tar.bz2 newspipe-f4a2f263c1980f8de6f6d62ce7d07169e532bff8.zip |
error() is called when the password can't be changed.
Diffstat (limited to 'source/pyAggr3g470r.py')
-rwxr-xr-x | source/pyAggr3g470r.py | 6 |
1 files 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 = "<p>Your password has been changed.</p>" + tmpl = lookup.get_template("confirmation.html") + return tmpl.render(message=message) else: - message = "<p>Impossible to change the password.</p>" - tmpl = lookup.get_template("confirmation.html") - return tmpl.render(message=message) + return self.error("<p>Impossible to change the password.</p>") change_password.exposed = True |