Password Expiration Check

Authentication ::: auth_pwdexp
Maintained by DavidDavid Bezemer
Password Expire Authentication plugin

Password Expiration Check 1.1 (Build: 2014040900)

Moodle 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6
Released: Wednesday, April 9, 2014, 8:05 PM
Supports Moodle 2.0 up to Moodle 2.6

A Moodle Auth plugin that handles password expiry

For a customer of UP learning, a special Authentication Module has been developed to handle password expiry in Moodle environments.
This plugin can be configured to force users to modify their password at a set interval (in days).

Place the pwdexp folder into the auth folder. Follow the normal installation procedure as you would for any plugin.

After installation the authentication module has to be enabled and configured.
Users - Authentication - Manage Authentication will now list the added module as: 'Password Expiration check'

On the 'Settings' page there are two configurable options:
1. The amount of days for password expiration
2. The URL to redirect to when the password has expired (ie Moodle Password change page)

Choose enable to activate the plugin, optionally configure the Expirationdays to a value to your desire (in days).
Also configure the page where users should be redirected when their password has expired. To use the default change password page (recommended) enter

Remark: Before the plugin is fully active, its settings need to be saved once, after this users will be tracked.
The module will apply to all logged in users, regardless of the authentication plugin order.
For this reason the plugin will enforce a password change for every user logging in after activating the plugin directly, and not after the first interval.

This module stores a password change date in the mdl_user_preferences table in the following format:
- userid
- auth_pwdexp_date
- timestamp (in unixtime)

When you login, the plugin will check the timestamp that is stored in the database, and if the value there is older than the password expiration interval, it will insert force_passwordchange = 1 into your user preferences, triggering the Moodle password change.

Version information

Version build number
Version release name
1.1 (Build: 2014040900)
Can be updated from
1.1 (Build: 2014031100)
Stable version
MD5 Sum
Supported software
Moodle 2.1, Moodle 2.0, Moodle 2.2, Moodle 2.3, Moodle 2.4, Moodle 2.5, Moodle 2.6
  • Latest release for Moodle 2.0
  • Latest release for Moodle 2.1
  • Latest release for Moodle 2.2
  • Latest release for Moodle 2.3
  • Latest release for Moodle 2.4
  • Latest release for Moodle 2.5
  • Latest release for Moodle 2.6

Version control information

Version control system (VCS)
VCS repository URL

Default installation instructions for plugins of the type Authentication

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder (eg "myauth") in the "auth" subdirectory.
  4. Visit to finish the installation