Skip to content

Commit

Permalink
cleaned up reset_url
Browse files Browse the repository at this point in the history
  • Loading branch information
jsayles committed Dec 9, 2020
1 parent 8fbe00a commit 06c5150
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions templates/registration/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{% endblock %}

{% block content %}

{% url 'password_reset' as reset_url %}
{% if ALLOW_ONLINE_REGISTRATION %}
<div>
<div class='col s12 m6 l6 offset-m3 offset-l3' id='login_box'>
Expand Down Expand Up @@ -36,8 +36,8 @@ <h2 class='font' id='login_header' align='center'>{% trans "Login" %}</h2>
</div>
{% csrf_token %}
<div id='login_reset'>
{% url 'password_reset' as password %}
<font size="-1"><i>{% blocktrans %}If you've forgotten your password, you will need to <a href="{{ password }}">create a new password{% endblocktrans %}</a>.</i></font>

<font size="-1"><i>{% blocktrans %}If you've forgotten your password, you will need to <a href="{{ reset_url }}">create a new password{% endblocktrans %}</a>.</i></font>
</div>
</form>
</div>
Expand Down Expand Up @@ -98,8 +98,7 @@ <h2 class='font' id='login_header'>{% trans "Login" %}</h2>
</div>
{% csrf_token %}
<div id='login_reset'>
{% url 'password_reset' as password %}
<font size="-1"><i>{% blocktrans %}If you've forgotten your password, you will need to <a href="{{ password }}">create a new password{% endblocktrans %}</a>.</i></font>
<font size="-1"><i>{% blocktrans %}If you've forgotten your password, you will need to <a href="{{ reset_url }}">create a new password{% endblocktrans %}</a>.</i></font>
</div>
</form>
</div>
Expand Down

0 comments on commit 06c5150

Please sign in to comment.