{% load i18n %}
{% if ppolicy_message %} {% if ppolicy_message_is_html %} {{ ppolicy_message|safe }} {% else %}
{{ ppolicy_message }}
{% endif %} {% else %}

{% trans 'Password Requirements' %}

{% trans 'Passwords must meet the following requirements.' %}

{% if admin %}

{% trans 'Passwords entered by Administrators are only checked for length.' %}

{% endif %} {% if ppolicy.alphabets > 0 and not isAdmin %} {% endif %} {% if ppolicy.uppers > 0 and not isAdmin %} {% endif %} {% if ppolicy.lowers > 0 and not isAdmin %} {% endif %} {% if ppolicy.symbols > 0 and not isAdmin %} {% endif %} {% if ppolicy.digits > 0 and not isAdmin %} {% endif %} {% if ppolicy.complexity > 0 and not isAdmin %} {% endif %} {% if ppolicy.prohibited and not isAdmin %} {% endif %} {% if ppolicy.must_not_contain_name and not isAdmin %} {% endif %} {% if ppolicy.must_differ_with_old and not isAdmin %} {% endif %} {% if ppolicy.must_be_various and not isAdmin %} {% endif %} {% if ppolicy.must_be_disorder and not isAdmin %} {% endif %}
{% blocktrans context 'password policy' %}length{% endblocktrans %} {% if ppolicy.min > 0 %} {% blocktrans with num=ppolicy.min context 'letters' %}{{ num }} or more{% endblocktrans %} {% endif %} {% if ppolicy.min > 0 and ppolicy.max < 100 %}{% trans ', ' %}{% endif %} {% if ppolicy.max < 100 %} {% blocktrans with num=ppolicy.max context 'letters' %}{{ num }} or less{% endblocktrans %} {% endif %}
{% blocktrans with s=_('Alphabets') %}Number of {{ s }}{% endblocktrans %} {% blocktrans with num=ppolicy.alphabets context 'letters' %}{{ num }} or more{% endblocktrans %}
{% blocktrans with s=_('Uppercases') %}Number of {{ s }}{% endblocktrans %} {% blocktrans with num=ppolicy.uppers context 'letters' %}{{ num }} or more{% endblocktrans %}
{% blocktrans with s=_('Lowercases') %}Number of {{ s }}{% endblocktrans %} {% blocktrans with num=ppolicy.lowers context 'letters' %}{{ num }} or more{% endblocktrans %}
{% blocktrans with s=_('Symbol characters') %}Number of {{ s }}{% endblocktrans %} {% blocktrans with num=ppolicy.symbols context 'letters' %}{{ num }} or more{% endblocktrans %}
{% blocktrans with s=_('Digits') %}Number of {{ s }}{% endblocktrans %} {% blocktrans with num=ppolicy.digits context 'letters' %}{{ num }} or more{% endblocktrans %}
{% blocktrans with s=_('Types of letters') %}Number of {{ s }}{% endblocktrans %} {% blocktrans with num=ppolicy.complexity context 'types' %}{{ num }} or more{% endblocktrans %}
{% trans 'Prohibited characters' %}{{ ppolicy.prohibited }}
{% trans 'Must NOT contain your user name' %}
{% trans 'Must be different from your current password' %}
{% trans 'Must be various' %}
{% trans 'Must be disorder' %}
{% endif %} {% with policy_class="alert alert-danger fw-bold" %}
{% endwith %}