Skip to content

Commit c855f6f

Browse files
committed
Don't show socialaccount login if no signups
1 parent beda301 commit c855f6f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

templates/account/login.html

+7-5
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,13 @@
6464
{% endif %}
6565
{% endelement %}
6666
{% endif %}
67-
{% if SOCIALACCOUNT_ENABLED %}
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>
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 %}
7274
{% endif %}
7375
{% endblock content %}
7476
{% block extra_body %}

0 commit comments

Comments
 (0)