mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-21 03:42:55 +03:00
turn @'s to -'s rather than .'s
This commit is contained in:
parent
240e940c3f
commit
b22a53e357
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue