Skip to content

Commit 33c6011

Browse files
committed
Gate on sso feature on brand instead of signups
1 parent c855f6f commit 33c6011

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
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

+5-7
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,11 @@
6464
{% endif %}
6565
{% endelement %}
6666
{% endif %}
67-
{% if "signups" in request.branding.features %}
68-
{% if SOCIALACCOUNT_ENABLED %}
69-
{% include "socialaccount/snippets/login.html" with page_layout="entrance" %}
70-
{% endif %}
71-
{% if not invite %}
72-
<div class="sign-in-notice mt-4">{% blocktranslate %}Don't have an account yet? {{ link }}Sign up{{ end_link }}{% endblocktranslate %}</div>
73-
{% endif %}
67+
{% if SOCIALACCOUNT_ENABLED and "sso" in request.branding.features %}
68+
{% include "socialaccount/snippets/login.html" with page_layout="entrance" %}
69+
{% endif %}
70+
{% if "signups" in request.branding.features and not invite %}
71+
<div class="sign-in-notice mt-4">{% blocktranslate %}Don't have an account yet? {{ link }}Sign up{{ end_link }}{% endblocktranslate %}</div>
7472
{% endif %}
7573
{% endblock content %}
7674
{% block extra_body %}

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)