From b114a45f5ff515dd4887e33e808bb02cb109dfff Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Fri, 19 Feb 2021 07:48:46 -0500 Subject: [PATCH] Support not providing an IdP icon when choosing a username. (#9440) --- changelog.d/9440.bugfix | 1 + synapse/res/templates/sso_auth_account_details.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/9440.bugfix diff --git a/changelog.d/9440.bugfix b/changelog.d/9440.bugfix new file mode 100644 index 000000000..47b9842b3 --- /dev/null +++ b/changelog.d/9440.bugfix @@ -0,0 +1 @@ +Fix bug introduced in v1.27.0 where allowing a user to choose their own username when logging in via single sign-on did not work unless an `idp_icon` was defined. diff --git a/synapse/res/templates/sso_auth_account_details.html b/synapse/res/templates/sso_auth_account_details.html index f4fdc40b2..00e1dcdbb 100644 --- a/synapse/res/templates/sso_auth_account_details.html +++ b/synapse/res/templates/sso_auth_account_details.html @@ -145,7 +145,7 @@ {% if user_attributes.avatar_url or user_attributes.display_name or user_attributes.emails %}
-

Information from {{ idp.idp_name }}

+

{% if idp.idp_icon %}{% endif %}Information from {{ idp.idp_name }}

{% if user_attributes.avatar_url %}