The WordPress Password Expiry plugin is used to expire a user’s access of a site, with the same password, after a specified number of days. The time limit, and the roles for which the rule has to be applied can be set from the dashboard settings for this plugin.
After a password expires, user will not be allowed to login, until he resets the password, or requests for a new password (depending on which option has been set).
With the latest version of this plugin, you can display a custom message to the user.