summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-02-10 15:08:10 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-02-10 15:08:10 +0000
commit979f3a5e034dfc6af219cf4b341d919c03b87655 (patch)
tree3d618b6cc3c46842f36dc5b3bac0b70e88be6b9e
parentUse python3 in the demo (diff)
parentTrack deactivated accounts in the database (#5378) (diff)
downloadsynapse-979f3a5e034dfc6af219cf4b341d919c03b87655.tar.xz
Track deactivated accounts in the database (#5378)
-rw-r--r--synapse/handlers/deactivate_account.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/handlers/deactivate_account.py b/synapse/handlers/deactivate_account.py

index b8cf6ab57c..3d86ef1c49 100644 --- a/synapse/handlers/deactivate_account.py +++ b/synapse/handlers/deactivate_account.py
@@ -121,6 +121,9 @@ class DeactivateAccountHandler(BaseHandler): # parts users from rooms (if it isn't already running) self._start_user_parting() + # Mark the user as deactivated. + yield self.store.set_user_deactivated_status(user_id, True) + # Remove all information on the user from the account_validity table. if self._account_validity_enabled: yield self.store.delete_account_validity_for_user(user_id)