Skip to content

Commit ff74196

Browse files
authored
Link to old dashboard for SAML login (#452)
The new dashboard doesn't work for granting access to docs pages yet.
1 parent 70387cf commit ff74196

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

readthedocsext/theme/templates/account/login.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{% extends "account/base_entrance.html" %}
22

3-
{% load account socialaccount %}
4-
{% load crispy_forms_tags %}
5-
{% load i18n %}
3+
{% load get_providers from socialaccount %}
4+
{% load crispy from crispy_forms_tags %}
5+
{% load trans blocktrans from i18n %}
66

77
{% block head_title %}
88
{% trans "Log in" %}
@@ -49,10 +49,10 @@
4949
{% endblock authentication_email_text %}
5050
</a>
5151

52-
5352
{% if USE_ORGANIZATIONS %}
5453
<a class="item"
55-
href="{% url "saml_resolve_login" %}{% if redirect_field_value %}?{{ redirect_field_name }}={{ redirect_field_value }}{% endif %}">
54+
{# Link to the old dashboard, since the new dashboard doesn't work for granting access to docs pages yet #}
55+
href="https://readthedocs.com{% url "saml_resolve_login" %}{% if redirect_field_value %}?{{ redirect_field_name }}={{ redirect_field_value }}{% endif %}">
5656
<i class="fas fa-shield-alt icon"></i>
5757
{% trans "Single sign-on" %}
5858
</a>

0 commit comments

Comments
 (0)