• Resolved lbausch

    (@lbausch)


    I’m using this plugin to activate new registered users manually. Since the update new users are no longer receiving their password via email. The email contains only the username and the link to login page. This used to work in previous versions so I assume this has something to do with the recent update.
    As far as I can see the relevant part in the code is the following:

    // if the password has already been reset, absolutely bypass
            if ( empty( $password_reset ) ) {

    http://wordpress.org/plugins/new-user-approve/

Viewing 15 replies - 1 through 15 (of 15 total)
  • Yes. I did add lots of logic to make this work better. The code you are referring to above prevents the plugin from changing the user’s password if they have already reset it.

    You can absolutely bypass this and even add your own logic. To turn on the password reset to always occur add this code to your theme’s functions.php file:

    add_filter( ‘new_user_approve_bypass_password_reset’, ‘__return_false’ );

    Thread Starter lbausch

    (@lbausch)

    Thanks for your fast reply. The problem I have is that new registered users do not reset their password but instead they are waiting for their eMail whith the credentials.
    Since my customers change their themes very often is there a way to add a global and theme-independent setting for this?

    @josh, thank you!! (if anyone else searches for this issue, I had the same problem and this fixed it perfectly) Love your plugin πŸ™‚

    @lbausch – This fix will still do what you want. If it is a new user, the password will be “reset” before the email is sent to them; they will receive the password in their approval email (they won’t need to actually reset it after that). As for your question about a global setting, maybe someone else has a better idea, but the only ways I can think of involve changing the plugin code or the WordPress core code…either one is a less than ideal idea b/c you’ll lose the changes at update.

    It would be best to create a plugin for any overrides you have like this.

    FYI, I am working on an addon plugin that will create an options panel that will take care of this option along with many others.

    The addon plugin – it will be separate to the ‘new approved user’ plugin?

    I ask, because I think it’s a bit weird for a new user, who doesn’t have a password, to follow the ‘lost password’ process, when they never had a password…

    Thankfully, your workaround posted above works well for me, but it would be nice to not have to do a workaround, if it can be helped.

    Josh-

    I am having the same trouble (after manual approval, the email sent to my new users does not contain a password) with a site running WordPress 3.6.1 and bbPress 2.4. Are you going to update this plugin, or create a separate one with more options? I’d rather not muck with the PHP code if you’re going to fix it on a higher level.

    Also and perhaps unrelated, my new users are not getting assigned a Forum Role in the forum, just the web site itself. I have to go in later and add it manually. Not sure if this is related at all to New User Approve? Pretty new at doing this…

    Thanks

    I have a hard time considering this to be resolved when the fix listed is to edit your theme’s function.php file to add a new function. Editing the theme’s files to make a plug-in work doesn’t sound right to me no matter how you sell it. You change your theme, the plug-in stops working. You upgrade your theme, the plug-in stops working. Neither of those things should happen. You should never have to edit the theme to make a plug-in work, especially an for a plug-in that is in no way connected to the theme.

    I would like to see the fix you described added into your existing plug-in. It controls the functionality of this plug-in so it should be included in the plug-in, not in a separate plug-in as you mentioned you were thinking of doing.

    Please make the fix so this included in a future update to your current plug-in. If needed, make it an option, but make it self contained.

    I did use your fix, but created a separate plug-in with your one line of code in it so that any updates or changes to my theme don’t stop the plug-in from working. This is not ideal in anyway, but is much better than your suggestion of editing the theme.

    The problem is that the plugin does not anymore function correctly as it does not send the password in any case no matter if it was set before or not (at least in my tests).
    @josh: Are you aware of that?

    I am working on a fix for this.

    I have uploaded a new version (1.5.3) of the plugin that fixes this bug. Please let me know if there are any more issues.

    Hi Josh,

    Thanks for the update!

    The user now gets a password in their sign up email – that part works fine.

    However (I’ve not done much debug yet), but it seems I, as the admin, don’t get a ‘new user has signed up’ mail anymore.

    Thanks,

    Sid

    PS. I also can’t seem to get ‘approve’ working in the Users -> Approve New Users menu item. I click on approve, but nothing happens. I get this screen after clicking ‘approve’: screenshot. I realise this is another problem, so will create a new forum post if preferred.

    I just posted a fix for the admin not getting the email.

    I will look into the issue when clicking ‘approve’.

    The approve link is now working in version 1.5.5.

    Hi Josh – My issues are now resolved.

    Admin gets an email now, and clicking ‘approve’ in the legacy page (I didn’t realise it was legacy) works perfectly.

    I do appreciate you being responsive to these issues, thanks.

    I only say it is legacy because you can now use the user list to approve an deny users. At one point, I almost removed the ‘legacy’ page entirely from the plugin but I thought better of it.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘New approved user do not receive password via email’ is closed to new replies.