Skip to content

Commit

Permalink
#4272 update based on comments.
Browse files Browse the repository at this point in the history
ajrbyers authored and mauromsl committed Jun 19, 2024
1 parent cf354a6 commit 224afa4
Showing 4 changed files with 22 additions and 10 deletions.
14 changes: 14 additions & 0 deletions src/templates/common/elements/password_rules.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<li>
{% blocktrans trimmed with password_length=request.press.password_length %}
Your password should be {{ password_length }} characters long.
{% endblocktrans %}</li>
{% if request.press.password_upper %}
<li>{% blocktrans trimmed %}
Your password should contain at least one upper case letter.
{% endblocktrans %}</li>
{% endif %}
{% if request.press.password_number %}
<li>{% blocktrans trimmed %}
Your password should contain at least one number.
{% endblocktrans %}</li>
{% endif %}
4 changes: 1 addition & 3 deletions src/themes/OLH/templates/core/accounts/register.html
Original file line number Diff line number Diff line change
@@ -26,9 +26,7 @@ <h5>{% trans "Register for an account with" %} {{ request.press.name }}.</h5>

<p>{% trans "Password Rules" %}:</p>
<ul class="no-top-margin">
<li>{% blocktrans with password_length=request.press.password_length %}Your password should be {{ password_length }} characters long.{% endblocktrans %}</li>
{% if request.press.password_upper %}<li>{% blocktrans %}Your password should contain at least one upper case letter.{% endblocktrans %}</li>{% endif %}
{% if request.press.password_number %}<li>{% blocktrans %}Your password should contain at least one number.{% endblocktrans %}</li>{% endif %}
{% include "common/elements/password_rules.html" %}
</ul>
<p>{% blocktrans %}For more information read our <a href="#" data-open="password-modal">password guide</a>.{% endblocktrans %}</p>

4 changes: 1 addition & 3 deletions src/themes/clean/templates/core/accounts/register.html
Original file line number Diff line number Diff line change
@@ -17,9 +17,7 @@
<h5>{% trans "Register for an account with" %} {{ request.press.name }}.</h5>
<p>{% trans "Password Rules" %}:</p>
<ul class="no-top-margin">
<li>{% blocktrans with password_length=request.press.password_length %}Your password should be {{ password_length }} characters long.{% endblocktrans %}</li>
{% if request.press.password_upper %}<li>{% blocktrans %}Your password should contain at least one upper case letter.{% endblocktrans %}</li>{% endif %}
{% if request.press.password_number %}<li>{% blocktrans %}Your password should contain at least one number.{% endblocktrans %}</li>{% endif %}
{% include "common/elements/password_rules.html" %}
</ul>
<p>{% blocktrans %}For more information read our <a href="#" data-toggle="modal" data-target="#passwordmodal">password guide</a>.{% endblocktrans %}</p>

10 changes: 6 additions & 4 deletions src/themes/material/templates/core/accounts/register.html
Original file line number Diff line number Diff line change
@@ -19,11 +19,13 @@
{% endif %}
<p>{% trans "Password Rules" %}:</p>
<ul class="no-top-margin browser-default">
<li>{% blocktrans with password_length=request.press.password_length %}Your password should be {{ password_length }} characters long.{% endblocktrans %}</li>
{% if request.press.password_upper %}<li>{% blocktrans %}Your password should contain at least one upper case letter.{% endblocktrans %}</li>{% endif %}
{% if request.press.password_number %}<li>{% blocktrans %}Your password should contain at least one number.{% endblocktrans %}</li>{% endif %}
{% include "common/elements/password_rules.html" %}
</ul>
<p>{% blocktrans %}For more information read our <a href="#passwordmodal" class="modal-trigger">password guide</a>.{% endblocktrans %}</p>
<p>
{% blocktrans trimmed %}For more information read our
<a href="#" data-target="passwordmodal" class="modal-trigger">password
guide</a>.{% endblocktrans %}
</p>
<form method="POST">
{% include "elements/forms/errors.html" %}
{% csrf_token %}

0 comments on commit 224afa4

Please sign in to comment.