{% extends "admin_layout.html" %} {% import "_page.html" as page_ui %} {% block title %}Spark - Password policies{% endblock %} {% block page %}
{% call page_ui.header("Password policies", "The rules a password must meet, and which people each policy covers.") %} New policy {% endcall %} {% set tab = "policies" %}{% include "_password_admin_tabs.html" %} {% include "_page_messages.html" %}
Policies

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.

{% for policy in policies %} {% set rules = policy.settings.rules %} {% endfor %}
PriorityPolicyRolesRulesPeople 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
Roles and their policies

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.

{% for role in roles %} {% endfor %}
RolePolicy
{{ role.name }}
{% endblock %}