Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit b114a45

Browse files
authored
Support not providing an IdP icon when choosing a username. (#9440)
1 parent 8bcfc2e commit b114a45

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/9440.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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.

synapse/res/templates/sso_auth_account_details.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ <h1>Your account is nearly ready</h1>
145145
<input type="submit" value="Continue" class="primary-button">
146146
{% if user_attributes.avatar_url or user_attributes.display_name or user_attributes.emails %}
147147
<section class="idp-pick-details">
148-
<h2><img src="{{ idp.idp_icon | mxc_to_http(24, 24) }}"/>Information from {{ idp.idp_name }}</h2>
148+
<h2>{% if idp.idp_icon %}<img src="{{ idp.idp_icon | mxc_to_http(24, 24) }}"/>{% endif %}Information from {{ idp.idp_name }}</h2>
149149
{% if user_attributes.avatar_url %}
150150
<label class="idp-detail idp-avatar" for="idp-avatar">
151151
<div class="check-row">

0 commit comments

Comments
 (0)