This plugin forces users to change their passwords every 30 days. There is zero configuration.
Please report any bugs to Telegraph Media Group's github page at https://github.com/telegraph/. This plugin also works in the mu-plugins directory.
安装:
Install via WordPress Plugins administration page.
I want the expiry period to be different from 30 days?
In your wp-config.php file, add a define called 'TMG_AEP_EXPIRY', and set the value to the number of seconds until you want the log in to expire.
How are WordPress' log in cookies handled?
When a user's password expires, that user is prevented from being able to log in on your site until they reset their password.
If a user has a log in cookie set, and so are already logged in, they can still use your site until that cookie expires or they log out manually. WordPress cookies expire after 2 weeks, so a user account could remain active for 30 days plus 2 weeks.