Fix registration with register_mxid_from_3pid enabled (#5011)

This commit is contained in:
Erik Johnston 2019-04-04 16:45:15 +01:00 committed by Michael Kaye
parent 8fa09c7479
commit b00a8d870c

View file

@ -454,7 +454,7 @@ class RegisterRestServlet(RestServlet):
# something else went wrong.
break
if self.config.register_just_use_email_for_display_name:
if self.hs.config.register_just_use_email_for_display_name:
desired_display_name = address
else:
# XXX: a nasty heuristic to turn an email address into