Skip to content

Commit bfa7795

Browse files
committed
We're now showing the login link with a http:// scheme instead of https:// when in debug mode, in order to be able to log in when using 'python manage.py runserver', which only supports http.
- Legacy-Id: 7636
1 parent 94123b3 commit bfa7795

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/templates/base.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@
6060
{% if user %}
6161
<div id="ietf-login" class="noprint">
6262
{% if request.get_full_path == "/accounts/logout/" %}
63-
<a href="https://{{ request.get_host }}/accounts/login/" class="login" rel="nofollow">Sign in</a>
63+
<a href="{% if debug %}http://{% else %}https://{% endif %}{{ request.get_host }}/accounts/login/" class="login" rel="nofollow">Sign in</a>
6464
{% else %}
6565
{% if user.is_authenticated %}
6666
<a href="/accounts/">{{ user }}</a> | <a href="/accounts/logout/" class="login" rel="nofollow">Sign out</a>
6767
{% else %}
68-
<a href="https://{{ request.get_host }}/accounts/login/?next={{request.get_full_path|urlencode}}" class="login" rel="nofollow">Sign in</a>
68+
<a href="{% if debug %}http://{% else %}https://{% endif %}{{ request.get_host }}/accounts/login/?next={{request.get_full_path|urlencode}}" class="login" rel="nofollow">Sign in</a>
6969
{% endif %}
7070
{% endif %}
7171
</div>

0 commit comments

Comments
 (0)