Complexity
| Key | Default |
|---|---|
password_policy.min_length | 0 (off) |
password_policy.require_upper | false |
password_policy.require_lower | false |
password_policy.require_digit | false |
password_policy.require_special | false |
password_policy.disallow_username | false |
Validated wherever the plaintext is available: profile updates, password resets and registration.
Length does more than character classes. If you set one thing, set min_length — twelve or more — and leave the class requirements off. Requiring a symbol mostly produces Password1!.
Expiry
| Key | Default |
|---|---|
password_policy.expiry_days | 0 (off) |
An expired password blocks the sign-in and automatically sends a reset email, rate-limited. It is a real gate, not a nag that people dismiss for a year.
Enforced on authenticate at priority 35 — after core's own check and after login security, so an expired password on a locked-out IP still reports the lockout first.
Reuse prevention
| Key | Default |
|---|---|
password_policy.reuse_count | 0 (off) |
Superseded password hashes are recorded in itxuo_password_history on change, and the last N are rejected.
Only hashes are stored, never plaintext, and the history is removed with the user.
Breach checking
| Key | Default |
|---|---|
password_policy.breach_check_login | true |
password_policy.breach_list_path | empty |
Checks a password against a local breach list you supply the path to. Nothing is sent anywhere — not a hash, not a prefix, not a k-anonymity range query.
With no list configured there is nothing to check against and it does not block.
Rules around recovery itself
This is the part most password policies forget: the reset flow is a way into the account too.
| Key | Default |
|---|---|
password_policy.reset_disabled_roles | empty |
password_policy.reset_max_per_hour | 0 (unlimited) |
password_policy.reset_ttl_minutes | 0 (WordPress default) |
password_policy.reset_revokes_app_passwords | false |
- Disable self-service reset for chosen roles. Administrators on a high-value site sometimes should not be able to reset by email alone.
- Rate-limit reset requests, so the flow cannot be used to spam somebody's inbox or to farm valid-address responses.
- Shorten the reset key lifetime. WordPress's default is generous.
- Revoke application passwords on reset. Off by default, and worth turning on: without it, a password reset does not remove a credential an attacker already minted.
Email changes
| Key | Default |
|---|---|
password_policy.email_change_notify | true |
password_policy.email_change_requires_reauth | false |
Changing the address on an account is a full account takeover if it goes unnoticed — the new address can then reset the password, and the old owner cannot.
So the old address is notified, before its owner finds out by being unable to reset a password they no longer control.
Optionally the change requires re-authentication. That check stands down wherever sudo mode would not actually prompt, so it cannot become an unpassable gate.
Applying a policy to existing passwords
Complexity and reuse apply at the next change, not retroactively — the plugin cannot evaluate a password it only holds a hash of.
To apply a new policy now, use the admin force-reset for a user, a role or everybody. That flags the accounts, and the next sign-in requires a change.
Everything is editable in the interface
Every setting here is on the Password policy screen and reachable over REST.
That is a deliberate constraint: a restriction on account recovery that can only be seen or switched off by editing the database is how a hardening feature turns into an outage nobody can diagnose.