mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-03 19:57:29 +01:00
Fix account deactivation
This commit is contained in:
parent
5cbfe4cda5
commit
1235bc14db
@ -247,7 +247,8 @@ def delete(username):
|
|||||||
|
|
||||||
db.session.delete(user)
|
db.session.delete(user)
|
||||||
elif "deactivate" in request.form:
|
elif "deactivate" in request.form:
|
||||||
user.replies.delete()
|
for reply in user.replies.all():
|
||||||
|
db.session.delete(reply)
|
||||||
for thread in user.threads.all():
|
for thread in user.threads.all():
|
||||||
db.session.delete(thread)
|
db.session.delete(thread)
|
||||||
user.email = None
|
user.email = None
|
||||||
|
Loading…
Reference in New Issue
Block a user