summary refs log tree commit diff
path: root/synapse/rest/client
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2018-04-17 09:32:42 +0100
committerMatthew Hodgson <matthew@matrix.org>2018-04-17 09:32:42 +0100
commitb22a53e3579e6f93a4081b57ebc5ebca18e04ecd (patch)
tree6451529bf75fe217eba93395ff7dca03d13ea1fc /synapse/rest/client
parenthandle medium checks correctly (diff)
downloadsynapse-b22a53e3579e6f93a4081b57ebc5ebca18e04ecd.tar.xz
turn @'s to -'s rather than .'s
Diffstat (limited to 'synapse/rest/client')
-rw-r--r--synapse/rest/client/v2_alpha/register.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/register.py b/synapse/rest/client/v2_alpha/register.py
index 41a13ece7f..9ada3ca5c1 100644
--- a/synapse/rest/client/v2_alpha/register.py
+++ b/synapse/rest/client/v2_alpha/register.py
@@ -388,7 +388,7 @@ class RegisterRestServlet(RestServlet):
                     )
                 ):
                     address = auth_result[login_type]['address']
-                    desired_username = address.replace('@', '.').lower()
+                    desired_username = address.replace('@', '-').lower()
 
         if desired_username is not None:
             yield self.registration_handler.check_username(