{% extends "admin_layout.html" %} {% import "_page.html" as page_ui %} {% block title %}Spark - Password policies{% endblock %} {% block page %}
A person who signs in with a password follows the policy pinned on them. Without a pin, the policy of highest priority (1 is the highest) among the roles they hold applies, and without one of those, the default.
| Priority | Policy | Roles | Rules | People covered | |
|---|---|---|---|---|---|
| {% if policy.is_default %}default{% else %}{{ policy.priority }}{% endif %} | {{ policy.settings.name }} | {% for role in policy.roles %}{{ role }}{% else %}{% if policy.is_default %}every other role{% else %}none{% endif %}{% endfor %} | {{ rules.min_length }} to {{ rules.max_length }} characters{% if rules.min_classes %}, {{ rules.min_classes }} kinds{% endif %}{% if policy.settings.history_count %}, remembers {{ policy.settings.history_count }}{% endif %}{% if policy.settings.hibp_enabled %}, breach check{% endif %} | {{ covered[policy.id] }} | {% if not policy.is_default %} {% for direction, label, icon in [("up", "Move up", "bi-arrow-up"), ("down", "Move down", "bi-arrow-down")] %} {% endfor %} {% endif %} Edit |
Map a role to a policy. A role with no policy of its own follows the default. A person with several roles follows the mapped policy of highest priority.
| Role | Policy | |
|---|---|---|
| {{ role.name }} | ||