diff options
author | Marian Sigler <m@qjym.de> | 2012-10-01 01:37:41 +0200 |
---|---|---|
committer | Marian Sigler <m@qjym.de> | 2012-10-01 01:37:41 +0200 |
commit | e712284e6dacc85677da480ff0be03c524d85d9a (patch) | |
tree | c65b608096623de20179c9a4529649aac9606b77 /app.py | |
parent | d70bd03975f9bff365a917f07fbf5306eb171aee (diff) | |
download | web-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.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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') |