This post is about the ‘Bulk Password Reset’ plugin for WordPress. With this plugin you can easily reset the password of users within your WordPress website.
Some time ago I was searching for a WordPress plugin that can help me reset the passwords of certain users within the WordPress database. After having a tweet discussion about this with Remkus de Vries he confirmed to me that there was no such kind of plugin. As I really would like that have this feature/option in a plugin in stead of doing it directly in the database, I thougth ‘why not do it myself’. First of all I wrote some features I would like to have:
- Bulk reset the password of users;
Sent a bulk message to certain users or groups and reset their password. Within the mail a request should be made to change their password.
- Able to set your own password;
Add an extra field where you can set your own password in stead of the WordPress generated password.
- Add a message to the outgoing e-mail.
Additional message can be added to the body message of the outgoing e-mail.
With this in mind I took a look in the sourcecode of WordPress and then I came up with some additional features/requirements, like:
- Bulk authentication e-mail;
As the normal procedure of WordPress is to first sent an authentication message, this feature has been added to the plugin.
- Able to set the authentication code;
As a custom password is possible, a custom authentication code should also remain to the possibilites.
- Reset the password-nag.
After a user logs in to WordPress a message is shown to change the password. With a simple option it is possible to deactivate this.
After having a look on how to build a plugin I started on working with the plugin template created by Pressography. For the admin section I took a look how Joost de Valk created his admin section for the great Google Analytics plugin. On the right you will find a screenshot how the admin section is looking.
When the admin section was created the core functions for sending a authentication message and a password reset message where copied and adjusted to fit the requirements above. After some test runs, fixes and adjustments I can finally release this new plugin to the public.
Get the plugin from the WordPress Plugins Directory.
- Drop the file folder ‘bulk_password_reset’ into /wp-content/plugins/
- Activate the plugin in the Plugin Management
- Navigate to ‘Users’ –> ‘Bulk Password Reset’
- Select one or more usergroup(s) for which you would like to perform a password reset;
- Set additional ‘advanced’ options and;
- Activate the checkbox ‘Do the bulk reset‘ as this forces the reset, else only the settings will be saved.
The author does not ask you to donate for this plugin, because he himself is a happy user of free software.