Skip to content

Commit fa55fc1

Browse files
authored
Login: add link to SAML login (#11541)
* Login: add link to SAML login * Typos
1 parent 6036c2e commit fa55fc1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

readthedocs/templates/account/login.html

+9
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,15 @@ <h3>{% trans 'Or' %}</h3>
7171
<div class="clearfix">
7272
<ul class="socialaccount_providers">
7373
{% include "socialaccount/snippets/provider_list.html" with process="login" next=request.GET.next verbiage="Log in using" %}
74+
{% if USE_ORGANIZATIONS %}
75+
<li>
76+
<form action="{% url "saml_resolve_login" %}{% if redirect_field_value %}?{{ redirect_field_name }}={{ redirect_field_value }}{% endif %}" method="get">
77+
<button class="socialaccount-provider button" type="submit">
78+
{% trans "Log in using single sign-on" %}
79+
</button>
80+
</form>
81+
</li>
82+
{% endif %}
7483
</ul>
7584
</div>
7685
{% endif %}

0 commit comments

Comments
 (0)