The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

WP-Members: Membership Framework
[resolved] Activating User Re-Sets Custom Password (7 posts)

  1. LSnyder
    Posted 3 years ago #

    I recently installed wp-members. I have pre-existing users on my site. When the pre-existing users try to log in, they cannot do so because they are not activated. When I go in and activate the users, their previous passwords are reset and they are prompted to sign in and re-create their info. This is a very big inconvenience for my previous users.

    I currently have my users enter a custom password when registering. This eliminates the need for them to return to re-set a generic issued password. The problem is that when I activate them it re-sets and emails a generic password anyways, thus confusing registrants because they've already selected a custom one.

    I'm torn. I would really like to use the "hold for manual activation" feature but it seems to complicate the password system. Do you have any suggestions for streamlining this process? Is it possible to not have the system automatically generate a generic password?


  2. Chad Butler
    Plugin Author

    Posted 3 years ago #

    Yes, if you have setup the plugin to allow the user to create a password at registration, the password is not reset at activation. That means you have created a password field in the plugin's field management tab.

    If you use that in conjunction with moderated registration, it is important to note that you will need to change the default emails that go out. In that configuration, if you send the user their login credentials, you cannot send the password at activation (since it is already encrypted in the db by that point). You would need to send login creds are registration.

  3. LSnyder
    Posted 3 years ago #

    I can verify that the custom password input, upon registration, works properly. I was able to create an account with a custom password when the "moderate registration" was disabled.

    You are saying that if I remove this short code from the "user is approved" email:

    Username: [username]
    Password: [password]

    and add it to the "registration is moderated" email, it will not create a system-generated password, even after I active the user? I attempted to do this. From the user side I received my username and custom password, but after the admin activated the profile, the custom password did not work. Any suggestions?

    Website reference: http://www.SundayFunday.us

    I can also provide admin access if that would help troubleshoot.

    Thanks so much!

  4. Chad Butler
    Plugin Author

    Posted 3 years ago #

    Thanks for being persistent (and patient)! It seems that there is a problem with this in both 2.8.0 and 2.8.1.

    Just to bring you up to speed on where we are so far - the 2.8.x project focuses mostly on rebuilding the admin side of the plugin.

    In 2.7.7, the user profile update function had a flag $chk_pass that told the activation function whether or not it needed to create a password with activation or not. That seems to have disappeared in 2.8.0 when some of the logic in the user update function was rewritten.

    I'll produce a patch, apply that to 2.8.2 and also post instructions on applying the patch to 2.8.1.

  5. LSnyder
    Posted 3 years ago #

    Thank you so much!! For the time being I'll just go ahead and monitor user registrations without requiring activation. Once 2.8.2 is up I'll give it a demo and see if we can get it up and running.

    Once last question... I now have a large group of past members who are grandfathered into the wp-members database as unactivated users. How can I activate all my previous registrants without sending out a "user is approved" email? I'm worried this will confuse them and show users I'm fiddling with accounts on the backend.

  6. Chad Butler
    Plugin Author

    Posted 3 years ago #

    I updated the 2.8.2 beta to RC4 today. That includes a number of fixes including this one you and I were discussing. It is a beta release, but it is stable. It is just in need of testing prior to official release, so maybe you'd like to give it a go?

    Here's the release announcement with notes on the beta release candidates.

    As for the question about shutting down the "user is approved" email when you do the existing users... there isn't an official way to do that. However, if you empty the user approved email from the emails tab, I think that nothing will be sent. So you could do that for when you activate existing users, then reinstate the email content for moving forward. (I think that will work, but you should test it first to make sure.)

  7. LSnyder
    Posted 3 years ago #

    I'll test out the 2.8.2 beta now and let you know what I find out. Thanks for updating so quickly! In addition I'll empty the approved email and see what happens. Send you some updates shortly.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Members: Membership Framework
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic