summary refs log tree commit diff
path: root/synapse/handlers/register.py
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2021-02-01 17:30:42 +0000
committerGitHub <noreply@github.com>2021-02-01 17:30:42 +0000
commit85c56b5a679add887ec9716f176949561dca581b (patch)
treeec00c2d951fec3f32a29fd8e586196a9fe4a666a /synapse/handlers/register.py
parentReplace username picker with a template (#9275) (diff)
downloadsynapse-85c56b5a679add887ec9716f176949561dca581b.tar.xz
Make importing display name and email optional (#9277)
Diffstat (limited to 'synapse/handlers/register.py')
-rw-r--r--synapse/handlers/register.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/handlers/register.py b/synapse/handlers/register.py

index a2cf0f6f3e..b20a5d8605 100644 --- a/synapse/handlers/register.py +++ b/synapse/handlers/register.py
@@ -14,8 +14,9 @@ # limitations under the License. """Contains functions for registering clients.""" + import logging -from typing import TYPE_CHECKING, List, Optional, Tuple +from typing import TYPE_CHECKING, Iterable, List, Optional, Tuple from synapse import types from synapse.api.constants import MAX_USERID_LENGTH, EventTypes, JoinRules, LoginType @@ -152,7 +153,7 @@ class RegistrationHandler(BaseHandler): user_type: Optional[str] = None, default_display_name: Optional[str] = None, address: Optional[str] = None, - bind_emails: List[str] = [], + bind_emails: Iterable[str] = [], by_admin: bool = False, user_agent_ips: Optional[List[Tuple[str, str]]] = None, ) -> str: