From b22a53e3579e6f93a4081b57ebc5ebca18e04ecd Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Tue, 17 Apr 2018 09:32:42 +0100 Subject: [PATCH] turn @'s to -'s rather than .'s --- synapse/rest/client/v2_alpha/register.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(