diff options
author | Nico von Geyso <Nico.Geyso@FU-Berlin.de> | 2012-09-29 02:15:49 +0200 |
---|---|---|
committer | Nico von Geyso <Nico.Geyso@FU-Berlin.de> | 2012-09-29 02:15:49 +0200 |
commit | a3ab2dc9ef070c2faa3e3ff9909337fe9575323b (patch) | |
tree | 63797d305348b8265c9b3fe300ba922b338e88af /app.py | |
parent | 7a47136d8de8d3b443907bb007728a11bf5dac61 (diff) | |
download | web-a3ab2dc9ef070c2faa3e3ff9909337fe9575323b.tar.gz web-a3ab2dc9ef070c2faa3e3ff9909337fe9575323b.tar.bz2 web-a3ab2dc9ef070c2faa3e3ff9909337fe9575323b.zip |
use correct variables... -_-
Diffstat (limited to 'app.py')
-rw-r--r-- | app.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -183,8 +183,8 @@ def lost_password_complete(token): def settings(): s = request.args.get('delete_service_password', None) if request.method == 'GET' and s: - for s in [x for x in app.all_services if x.name == s]: - g.user.reset_password(x.id) + for service_id in [x for x in app.all_services if x.name == s]: + g.user.reset_password(service_id) g.ldap.update(g.user, as_admin=True) #XXX: as_admin wieder wegmachen sobald ACLs richtig gesetzt sind form = SettingsForm(request.form, mail=g.user.mail) |