summary refs log tree commit diff
path: root/synapse/handlers/register.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2019-06-01 10:42:33 +0100
committerRichard van der Hoff <richard@matrix.org>2019-06-01 10:44:36 +0100
commitd16c6375fe39deaafd70b151e496f5e15fd7b29c (patch)
tree8450be747932a05c53b389ad5c9420fb3e6672e6 /synapse/handlers/register.py
parentupdate changelog (diff)
downloadsynapse-d16c6375fe39deaafd70b151e496f5e15fd7b29c.tar.xz
Limit displaynames and avatar URLs
These end up in join events everywhere, so let's limit them.

Fixes #5079
Diffstat (limited to 'synapse/handlers/register.py')
-rw-r--r--synapse/handlers/register.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/handlers/register.py b/synapse/handlers/register.py
index e83ee24f10..9a388ea013 100644
--- a/synapse/handlers/register.py
+++ b/synapse/handlers/register.py
@@ -531,6 +531,8 @@ class RegistrationHandler(BaseHandler):
             A tuple of (user_id, access_token).
         Raises:
             RegistrationError if there was a problem registering.
+
+        NB this is only used in tests. TODO: move it to the test package!
         """
         if localpart is None:
             raise SynapseError(400, "Request must include user id")