Commit 45882952 authored by Romain Loth's avatar Romain Loth

forgot to test key

parent 3cf13eb6
......@@ -364,7 +364,7 @@ def profile():
mlog("DEBUG", "saving profile with request.form=", request.form)
# special action DELETE!!
if request.form['delete_user'] == 'on':
if 'delete_user' in request.form and request.form['delete_user'] == 'on':
the_id_to_delete = current_user.uid
mlog("INFO", "executing DELETE scholar's data at the request of user %s" % str(the_id_to_delete))
logout_user()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment