mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-04-08 10:14:23 +00:00
Fix account deletion
This commit is contained in:
parent
f58a6f5778
commit
b8fa1e15d3
@ -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'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user