Password Expiration Check

Authentication ::: auth_pwdexp
Maintained by DavidDavid Bezemer
Password Expire Authentication plugin
Latest release:
14 sites
4 fans
Moodle 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6

Moodle Password Expiry

For a customer of UP learning, a special Authentication Module has been developed to handle password expiry in Moodle environments.

Place the code in the folder pwdexp in the Moodle auth folder. ($CFG->wwwroot\auth\pwdexp) (not dataroot!)

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'

Choose enable to activate the plugin.
Remark: Before the plugin is fully active, its settings need to be saved once.
The module will apply to all logged in users, regardless of the authentication plugin order.

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)

Remark: After the activation of the plugin there might not be a password change history for all users.
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.


Screenshot #0


David Bezemer (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Anthony Borrow
    Thu, Nov 14, 2013, 3:32 PM
    On 10/31/2013 12:57 AM - Aparup Banerjee has commented on a plugin submission that hasn't been approved:

    Thanks for sharing this here smile

    some review notes:
    - you might want to rename your github repository to stick with naming
    conventions 'moodle-{component}_{pluginname}'
    - You may want to include moodle 2.6 as supported too.
    - if you have any documentation or relevant website feel free to add those urls too smile
  • Anthony Borrow
    Thu, Nov 14, 2013, 3:33 PM
    On 10/31/2013 11:37 AM, David Bezemer has commented on a plugin submission that hasn't been approved :

    Corrected the version info, git urls and copyright information.
  • Anthony Borrow
    Thu, Nov 14, 2013, 3:34 PM
    David - Due to the recent crash, you likely need to re-update the information you mentioned above as being corrected. I suspect the changes you made were lost. Thanks for your patience and help as we work to reconstruct the lost data. Please do not hesitate to let me know if there is anything I can do to be supportive of your efforts. Peace - Anthony
  • David
    Sat, Nov 23, 2013, 10:38 PM
    Hi Anthony, I already reupped to latest version and corrected the info, right after was no longer read-only.
  • Anthony Borrow
    Thu, Jan 2, 2014, 8:36 AM
    David - In the description above, for install location - shouldn't that be $CFG->wwwroot\auth\pwdexp instead of dataroot? Have you had a chance to test this on Moodle 2.6? Some documentation to describe how to use it would be helpful as well. If you have any questions just let me know. Peace - Anthony
  • David
    Tue, Jan 21, 2014, 6:50 PM
    Hi Anthony, that should be indeed $CFG->wwwroot, the dataroot is an old Moodle 1.9 reference. Will update the documentation sometime this week. The plugin also correctly works with Moodle 2.6
  • MD shot of me from his iphone4
    Mon, Feb 24, 2014, 2:39 PM
    cool, i've updated the versions supported to include 2.6 and updated the description here for you. Please do update it in the readme.txt.
  • David
    Wed, Apr 9, 2014, 8:06 PM
    Small update fixing two language strings, with thanks to Michael Milette
  • David
    Fri, Aug 15, 2014, 5:18 PM
    As this is now shamelessly copied into Moodle core it will no longer be updated.
    Moodle 2.7 has this functionality builtin, so for 2.7 you don't need this plugin.
  • Sat, Oct 11, 2014, 1:24 AM
    Any idea where I can find this functionality in Moodle 2.7? I found it for Manual accounts but the same functionality does not exist for Email-based self-registration accounts which is what I need.
  • David
    Wed, Oct 15, 2014, 6:05 PM
    Feel free to update it if you need it, I'm leaving the Moodle community and will not work on any of this.
  • Wed, Feb 10, 2021, 4:00 PM
    if you are food lover you must own air fryer if you are looking for pocket friendly air fryer go to air fryer under $100
  • Wed, Feb 10, 2021, 4:01 PM
    If you are text editing love you must use case converter
  • Mon, Apr 5, 2021, 12:22 AM
    hi thank you its awesome guide line
Please login to post comments