aboutsummaryrefslogtreecommitdiff
path: root/source/pyAggr3g470r.py
diff options
context:
space:
mode:
Diffstat (limited to 'source/pyAggr3g470r.py')
-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