aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-01-10 18:13:52 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-01-10 18:13:52 +0100
commitf4a2f263c1980f8de6f6d62ce7d07169e532bff8 (patch)
treee643f28aa33e85f3b7163f3371bfd2f3e27999e2
parentUpdated header information for auth.py. (diff)
downloadnewspipe-f4a2f263c1980f8de6f6d62ce7d07169e532bff8.tar.gz
newspipe-f4a2f263c1980f8de6f6d62ce7d07169e532bff8.tar.bz2
newspipe-f4a2f263c1980f8de6f6d62ce7d07169e532bff8.zip
error() is called when the password can't be changed.
-rwxr-xr-xsource/pyAggr3g470r.py6
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
bgstack15