From 4911364056538aa95c41b6477ffa0063a8fab5d1 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Tue, 14 Jan 2020 17:00:11 +0000 Subject: [PATCH] set displayname to localpart ... because that's what mozilla would like. --- matrix_synapse_saml_mozilla/username_picker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix_synapse_saml_mozilla/username_picker.py b/matrix_synapse_saml_mozilla/username_picker.py index 0d7a16f..c109e47 100644 --- a/matrix_synapse_saml_mozilla/username_picker.py +++ b/matrix_synapse_saml_mozilla/username_picker.py @@ -158,7 +158,7 @@ class SubmitResource(AsyncResource): logger.info("Registering username %s", localpart) try: registered_user_id = await self._module_api.register_user( - localpart=localpart, displayname=session.displayname + localpart=localpart, displayname=localpart ) except SynapseError as e: logger.warning("Error during registration: %s", e)