mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
Fix some fields not being cleared in user deactivation
This commit is contained in:
parent
1d1709d3d4
commit
47feb9edc4
@ -275,6 +275,9 @@ def delete(username):
|
||||
db.session.delete(reply)
|
||||
for thread in user.threads.all():
|
||||
db.session.delete(thread)
|
||||
for token in user.tokens.all():
|
||||
db.session.delete(token)
|
||||
user.profile_pic = None
|
||||
user.email = None
|
||||
|
||||
if user.rank != UserRank.BANNED:
|
||||
|
Loading…
Reference in New Issue
Block a user