Skip to content

Commit d1716eb

Browse files
authored
Merge pull request #6011 from nyaruka/sso-brand-signups
Don't show socialaccount unless brand allows
2 parents b73ba22 + 33c6011 commit d1716eb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

temba/settings_common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@
313313
"landing": {
314314
"hero": "brands/rapidpro/splash.jpg",
315315
},
316-
"features": ["signups"],
316+
"features": ["signups", "sso"],
317317
}
318318

319319
FEATURES = {"locations"}

templates/account/login.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
{% endif %}
6565
{% endelement %}
6666
{% endif %}
67-
{% if SOCIALACCOUNT_ENABLED %}
67+
{% if SOCIALACCOUNT_ENABLED and "sso" in request.branding.features %}
6868
{% include "socialaccount/snippets/login.html" with page_layout="entrance" %}
6969
{% endif %}
7070
{% if "signups" in request.branding.features and not invite %}

templates/account/signup.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
{% trans "Sign up using a passkey" %}
5959
{% endelement %}
6060
{% endif %}
61-
{% if SOCIALACCOUNT_ENABLED and not invite %}
61+
{% if SOCIALACCOUNT_ENABLED and not invite and "sso" in request.branding.features %}
6262
{% include "socialaccount/snippets/login.html" with page_layout="entrance" %}
6363
{% endif %}
6464
{% if not invite %}

0 commit comments

Comments
 (0)