Part of the guide: Hardening WordPress security with AdminEase

Password Expiry lets you force a password change in WordPress after a set number of days. When a password is too old, the user logs in as usual, lands on their profile and must set a new password before they can open any other admin screen. This is an AdminEase Pro feature.

What this feature does

AdminEase remembers when each user last set their password. Once it is older than the limit, the user is sent to their profile after login and kept there on every wp-admin screen until they choose a new one. You can limit it to certain roles. Users who sign in through a single sign-on plugin that hides the password fields are not asked.

The age of each existing password starts counting the first time it is checked after you turn this on, so nobody is forced to change on day one.

How to force a password change in WordPress

  1. Open AdminEase › Security › Access Control. Find Password Expiry.
  2. Turn it on and set the days. Change Password Every (days) is 90 if you leave it empty.
  3. Optionally pick roles. Only users in the chosen roles are asked. Leave empty to ask everyone. Save.

Settings reference

SettingWhat it doesDefault
Password ExpiryMakes users change their password after a number of days.Off
Change Password Every (days)A password older than this must be changed (1 to 3650).90
Roles (optional)Only users in these roles are asked.All roles

What happens behind the scenes

Nobody is locked out

The profile screen is always reachable, so a user can always set a new password. Application passwords, the REST API, XML-RPC, AJAX and cron are not affected. If you ever need to switch the check off without logging in, add define( 'ADMINEASE_PRO_DISABLE_PASSWORD_EXPIRY', true ); to wp-config.php.

Troubleshooting

A user keeps landing on their profile

Their password is older than the limit. They need to set a new password and update the profile. Pair this with Force Strong Passwords so the new one is a good one.