Skip to content

Commit

Permalink
Fix some fields not being cleared in user deactivation
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenwardy committed Mar 6, 2024
1 parent 1d1709d commit 47feb9e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/blueprints/users/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 47feb9e

Please sign in to comment.