Fix account deletion

This commit is contained in:
Patrick Jentsch 2020-02-25 10:03:31 +01:00
parent f58a6f5778
commit b8fa1e15d3

View File

@ -61,9 +61,9 @@ def delete():
"""
View to delete yourslef and all associated data.
"""
logout_user()
thread = Thread(target=delete_user_,
args=(current_app._get_current_object(), current_user.id))
thread.start()
logout_user()
flash('Your account has been deleted!')
return redirect(url_for('main.index'))