WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: New User Approve] Password recovery doesn't work

[Resolved] [Plugin: New User Approve] Password recovery doesn't work

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Josh Harrison

    @picklewagon

    Is the user that you are trying to recover a password for approved? If the user has either a status of pending or denied, the password recovery form will just redirect to the login form where it states that the user must be approved to login to the site.

    All the users are approved (actually I was trying to send myself a password, to be really sure about that). There are no pending or denied users at all at the moment.

    Other plugins which are used on this website:
    – Event calendar by time.ly
    – Email Address Encoder
    – Member Access
    – PC Hide Pages
    – Peter’s Login Redirect

    I have disabled all other plugins to be sure that i got the only plugin which is producing a conflict. That’s why i wrote this post.

    ==> When i disable Login Redirect, the problem is still there
    ==> When i disable Member Access, Hide Pages, etc., the problem is still there
    ==> When i disable New User Approve, the problem has disappeared (which means, i get the recovery emails), but then I’m missing the approval system…

    This plugin works exactly how I want but like sphkress the password recovery doesn’t work while it is activated. It seems to be missing something because once you add the email in to retrieve the password it just goes straight to the login screen and nothing happens (no email). When the plugin is deactivated a message appear to tell you to check your email and you get an email with the new passowrd. Surely this was tested when the plugin was created & updated.

    I just came across the same issue. Here’s the solution I’ve found.
    Users that were created prior to the plugin being installed do not have a user meta field for pw_user_status. The plugin is checking for the value of this to be approved before it allows you to recover your password.

    On line 432 of new-user-approval.php I changed it to be:

    if ( $user_data->pw_user_status && $user_data->pw_user_status != 'approved' ) {

    That way it only prevents the reset if there is that meta key AND it is not marked approved.

    I was having this same problem: Any users created after the plugin is installed can recover their password correctly, however users that were in the system before the plugin will not be able to. The solution @weezer311 provided works (although the file he references is actually named new-user-approve.php).

    Plugin Author Josh Harrison

    @picklewagon

    I have tested and applied the change recommended by weezer311. Thanks for your help everybody.

    The update is in v1.4.2 of the plugin.

    Thanks Josh. I have just added the plugin again and the password recovery works a treat.

    Thanks again for fixing the plugin.

    Tigweb

    My hard drive was replaced. WordPress no longer recognizes my user name or pass word so I can’t make into my website. Any suggestions?

    Plugin Author Josh Harrison

    @picklewagon

    @Pollyhansen Can you use your email address to recover your password? If that doesn’t work, you can delete the plugin by logging in through FTP. But the plugin shouldn’t prevent you from recovering your password.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Resolved] [Plugin: New User Approve] Password recovery doesn't work’ is closed to new replies.