turn @'s to -'s rather than .'s

This commit is contained in:
Matthew Hodgson 2018-04-17 09:32:42 +01:00
parent 240e940c3f
commit b22a53e357

View file

@ -388,7 +388,7 @@ class RegisterRestServlet(RestServlet):
) )
): ):
address = auth_result[login_type]['address'] address = auth_result[login_type]['address']
desired_username = address.replace('@', '.').lower() desired_username = address.replace('@', '-').lower()
if desired_username is not None: if desired_username is not None:
yield self.registration_handler.check_username( yield self.registration_handler.check_username(