diff options
author | Matthew Hodgson <matthew@matrix.org> | 2018-04-17 09:32:42 +0100 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2018-04-17 09:32:42 +0100 |
commit | b22a53e3579e6f93a4081b57ebc5ebca18e04ecd (patch) | |
tree | 6451529bf75fe217eba93395ff7dca03d13ea1fc /synapse/rest/client | |
parent | handle medium checks correctly (diff) | |
download | synapse-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.py | 2 |
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( |