mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-17 23:30:13 -04:00
Remove user's avatar URL and displayname when deactivated. (#8932)
This only applies if the user's data is to be erased.
This commit is contained in:
parent
789d9ebad3
commit
7a2e9b549d
13 changed files with 351 additions and 17 deletions
|
@ -30,6 +30,7 @@ from synapse.rest.client.v1 import login, logout
|
|||
from synapse.rest.client.v2_alpha import devices, register
|
||||
from synapse.rest.client.v2_alpha.account import WhoamiRestServlet
|
||||
from synapse.rest.synapse.client.pick_idp import PickIdpResource
|
||||
from synapse.types import create_requester
|
||||
|
||||
from tests import unittest
|
||||
from tests.handlers.test_oidc import HAS_OIDC
|
||||
|
@ -667,7 +668,9 @@ class CASTestCase(unittest.HomeserverTestCase):
|
|||
|
||||
# Deactivate the account.
|
||||
self.get_success(
|
||||
self.deactivate_account_handler.deactivate_account(self.user_id, False)
|
||||
self.deactivate_account_handler.deactivate_account(
|
||||
self.user_id, False, create_requester(self.user_id)
|
||||
)
|
||||
)
|
||||
|
||||
# Request the CAS ticket.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue