summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorDirk Klimpel <5740567+dklimpel@users.noreply.github.com>2021-03-18 17:54:08 +0100
committerGitHub <noreply@github.com>2021-03-18 12:54:08 -0400
commit8dd2ea65a9566fd0850df0d989f700f61b490ed9 (patch)
tree558a61437c465c955160d45e8b8356d7ee9a5a68 /synapse/storage
parentMake federation catchup send last event from any server. (#9640) (diff)
downloadsynapse-8dd2ea65a9566fd0850df0d989f700f61b490ed9.tar.xz
Consistently check whether a password may be set for a user. (#9636)
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/databases/main/registration.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/storage/databases/main/registration.py b/synapse/storage/databases/main/registration.py
index eba66ff352..90a8f664ef 100644
--- a/synapse/storage/databases/main/registration.py
+++ b/synapse/storage/databases/main/registration.py
@@ -1210,6 +1210,7 @@ class RegistrationBackgroundUpdateStore(RegistrationWorkerStore):
         self._invalidate_cache_and_stream(
             txn, self.get_user_deactivated_status, (user_id,)
         )
+        self._invalidate_cache_and_stream(txn, self.get_user_by_id, (user_id,))
         txn.call_after(self.is_guest.invalidate, (user_id,))
 
     @cached()