WordPress.org

Ready to get started?Download WordPress

Forums

2.7.1 Plugin to restrict password retrieval - anyone interested? (3 posts)

  1. Vince2006
    Member
    Posted 5 years ago #

    Hello,

    I am in the process of developing a plugin for WP 2.7.1 that would make it so the WP administrator can restrict user levels from being able to reset their password from the login screen. The functions will include letting admin decide if a user level should or should not be allowed to use the password reset feature, including locking out all but the primary admin from doing so.

    This is actually something that is fairly easy to do for all user levels simply by changing true to false in wp-login.php and looking for this line:
    $allow = apply_filters('allow_password_reset', true, $user_data->ID);

    and chaging it to:

    $allow = apply_filters('allow_password_reset', false, $user_data->ID);

    but that would mean having to update wp-login.php after each and every upgrade whereas a plugin would only require that the plugin be deactivated during upgrade and then re-activated once the upgrade is complete.

    Why such a plugin? Well I have a few clients that handle all password changes from admin only. I also restrict a user's ability to change their profile data so that only admin has the ability to make these changes. See this post on how to do this: See Here )

    So my question is, anyone else think they could use this type of plugin? I of course would make it freely available - just wondering if it is something that 1.) anyone else could use and 2.) wondering if anyone has already begun work on such a plugin (I was unable to find any Googling or here in the forums.)

    All the best,
    Vince

  2. alarch
    Member
    Posted 4 years ago #

    Yes, this would be great. I have a client who has this requirement.

  3. ingeol
    Member
    Posted 4 years ago #

    Dear Vince,

    I have used you hack regarding restricting profile data changes, and it worked very well. Now a plug-in would of course be preferable in case of WordPress updates.

    Kind regards,
    Inge

Topic Closed

This topic has been closed to new replies.

About this Topic