Skip to content
Snippets Groups Projects
Commit b8fa1e15 authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

Fix account deletion

parent f58a6f57
No related branches found
No related tags found
No related merge requests found
...@@ -61,9 +61,9 @@ def delete(): ...@@ -61,9 +61,9 @@ def delete():
""" """
View to delete yourslef and all associated data. View to delete yourslef and all associated data.
""" """
logout_user()
thread = Thread(target=delete_user_, thread = Thread(target=delete_user_,
args=(current_app._get_current_object(), current_user.id)) args=(current_app._get_current_object(), current_user.id))
thread.start() thread.start()
logout_user()
flash('Your account has been deleted!') flash('Your account has been deleted!')
return redirect(url_for('main.index')) return redirect(url_for('main.index'))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment