mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-07-28 06:31:37 +00:00
Fix account deletion
This commit is contained in:
@@ -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'))
|
||||||
|
Reference in New Issue
Block a user