Reset Password

General plugins (Local) ::: local_resetpassword
Maintained by Picture of Aaron LeggettAaron Leggett, Picture of Chris ClarkChris Clark, Picture of Learning WorksLearning Works, Jeremy self portraitJeremy FitzPatrick
This local plugin allows an external service to access Moodle's reset password functionality.

Reset Password 1.0 (Build: 20140814)

Moodle 2.4, 2.5, 2.6, 2.7, 2.8
Released: Thursday, August 14, 2014, 8:04 AM


/** * @package local * @subpackage resetpassword * @copyright 2014 Aaron Leggett * @license GNU GPL v3 or later */

This local plugin allows an external service to access moodles reset password functionality. By posting a secure key, along with the user accounts email address, the local plugin will check against certain criteria before loggin, and sending the moodle password reset email.

The plugin checks a series of events before allowing the password reset email to be sent. 1 - Checks the plugin has been enabled (plugin setting disabled by default) 2 - Checks the encrypted key from the POST message matches the one stored in moodle (plugin setting) 3 - Checks the user exists in the moodle user table 4 - Checks the user is not an admin (admins have been restricted from using this plugin for security reasons)

The plugin works by an external service sending a POST request to the following plugin file [YOUR MOODLE URL] / local / resetpassword / reset.php eg

The file requires two variables to be posted to it. e - the email address of the account k - the encrypted key

The encrypted key that is posted to the file is created by concatenation of the email address and the private key (set in moodle), this is then encrypted with MD5.

eg e = k = MD5('' . 'private key')

For any further information regarding this plugin, please see the GITHUB issues or email the developer with the details below - -

Version information

Version build number
Version release name
1.0 (Build: 20140814)
Can be updated from
1.0 (Build: 2014060501)
Stable version
MD5 Sum
Supported software
Moodle 2.4, Moodle 2.5, Moodle 2.6, Moodle 2.7, Moodle 2.8
  • Latest release for Moodle 2.4
  • Latest release for Moodle 2.5
  • Latest release for Moodle 2.6
  • Latest release for Moodle 2.7
  • Latest release for Moodle 2.8

Version control information

Version control system (VCS)
VCS repository URL

Default installation instructions for plugins of the type General plugins (Local)

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