summaryrefslogtreecommitdiffstats
path: root/app.py
diff options
context:
space:
mode:
authorMarian Sigler <m@qjym.de>2012-10-01 01:37:41 +0200
committerMarian Sigler <m@qjym.de>2012-10-01 01:37:41 +0200
commite712284e6dacc85677da480ff0be03c524d85d9a (patch)
treec65b608096623de20179c9a4529649aac9606b77 /app.py
parentd70bd03975f9bff365a917f07fbf5306eb171aee (diff)
downloadweb-e712284e6dacc85677da480ff0be03c524d85d9a.tar.gz
web-e712284e6dacc85677da480ff0be03c524d85d9a.tar.bz2
web-e712284e6dacc85677da480ff0be03c524d85d9a.zip
settings: require old password to change password (only therefore)
Diffstat (limited to 'app.py')
-rw-r--r--app.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.py b/app.py
index 367ec0f..2754b96 100644
--- a/app.py
+++ b/app.py
@@ -216,7 +216,7 @@ def settings():
changed = True
if form.password.data:
- g.user.change_password(form.password.data, decrypt_password(session['password']))
+ g.user.change_password(form.password.data, form.old_password.data)
session['password'] = encrypt_password(form.password.data)
flash(u'Passwort geƤndert', 'success')