Password Policy: overview
On one settings page you choose the rules that staff passwords for the Capell admin must meet. You set a minimum length of 8 characters or more, and can ask for mixed case, numbers and symbols. Leaked passwords are refused using a check that needs your server to reach the internet, and it is skipped if it can’t. You can also block recently used passwords.
The rules apply to passwords set on the Users screen and the change-password screen, including an administrator’s reset for someone else, which counts as a fresh change. A password set through the forgot-password page must meet the same strength rules, and the change is recorded. Reuse checks run only on the Users and change-password screens. Signing in is not checked, and existing passwords are never re-checked.
Passwords can also expire after a number of days. Existing accounts count from the day you install Password Policy, and staff are sent to the change screen on their next admin page. There they must give their current password, and wrong guesses are limited to five every 15 minutes. Warning emails need working mail and queued jobs. To force a change, turn on the forced-change setting, then use Require password change on chosen users. The Users table marks them, with filters for who must change and who has expired.
What it does
Section titled “What it does”Password Policy applies shared password rules to Capell admin users. It can enforce length and complexity, reject compromised or recently used passwords, expire old passwords, warn users before expiry, and require selected users to change their password before continuing in the admin.
Where it shows up
Section titled “Where it shows up”Open System > Password Policy to configure the rules. Access to that settings page requires the generated View:PasswordPolicySettingsPage permission.
When Force password change is enabled, the Users table gains password-policy columns, filters, and single/bulk Require password change actions for users the operator is allowed to update. A flagged or expired user is redirected to a private password-change page after signing in and can otherwise only sign out until the password is changed.
Configure the policy
Section titled “Configure the policy”- Set a minimum length of at least eight characters and optionally require mixed case, numbers, and symbols.
- Compromised password checks reject passwords reported by Laravel’s uncompromised-password service. Password changes therefore need working outbound access to that service when this option is enabled.
- Password history rejects the configured number of recently used password hashes. Run the package migrations before enabling it; Diagnostics reports a failure if history is enabled without its table.
- Password expiry compares each recorded password-change time with the configured age. Existing users with no recorded change time are not treated as expired solely because expiry was enabled.
- Expiry warning notifications use the configured warning window and are sent once per password change.
Strength, compromised-password, and history rules are evaluated when a password is created or changed; they do not prove that existing password hashes meet the new rules. Expiry does apply to existing users that have a recorded password-change time.
The package wires these checks into Capell’s Filament user create/edit form and its forced-change page. It also sets Laravel’s Password::defaults() to the policy’s length, character and leaked-password rules, which the Filament password-reset page uses, and records a completed reset as a password change (history, change time, force-change flag). Reuse and name checks need the account, so they do not run on the reset page. A custom registration, API or other password-writing flow must call PasswordPolicyRule or the package update action itself; do not assume installing the package covers an unrelated host flow.
Force changes and recover access
Section titled “Force changes and recover access”Enable Force password change before marking users. Use the action on the Users table for normal administration, or capell:password-policy:require-change --user-id=<id> for one user. The --all option affects every user, so run it with --dry-run first and only use it during a planned rollout. To reach a group, use Require a password change for a group on the Password Policy settings page, or pass --role=<name>, --site=<id> or both. A site means everyone with a role on that site; global roles are not tied to a site, so name the role as well to include them.
For a NIST SP 800-63B baseline, use Use NIST recommendations on the settings page. It fills in at least 15 characters, no uppercase, number or symbol rules, breach and name checks, and no automatic expiry, and changes nothing until you save.
A successful change verifies the current password, applies the current policy, records the previous hash for history checks, clears the force-change flag and notification markers, and records the new change time. If users loop back to the change page, run capell:password-policy:doctor and check the user columns and settings migrations.
Scheduling and maintenance
Section titled “Scheduling and maintenance”When password expiry is turned on, the package schedules capell:password-policy:send-expiry-warnings and capell:password-policy:expire-stale daily on one server. The host must run Laravel’s scheduler and a queue worker. History pruning and require-change are not scheduled; run them yourself:
capell:password-policy:send-expiry-warningsfinds users inside the warning window and queues their email notifications. Without a queue worker, the emails remain pending.capell:password-policy:expire-stalecan proactively flag users whose recorded password age exceeds the policy. Runtime middleware also checks expiry when an authenticated admin request is made.capell:password-policy:prune-historyremoves older history rows while retaining the configured or explicitly requested number per user. Use--dry-runbefore changing retained history.
Changing or disabling the policy does not delete password-history rows automatically. Choose a maintenance cadence that matches the site’s account lifecycle and audit requirements.
For how to use Password Policy, see the admin guide. For developers: see the README.