PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Allow logged in user to register another user

  1. We're using the User Registration add-on (which is fantastic by the way) to allow a current user to add another user that is then "attached" to them using user_meta. We've worked out his whole process and its working great EXCEPT when filling out the User Reg form, if there is an error in submission (for example a required field is not filled out) it looks like the current user's info is updated using the data entered in the Reg fields.

    What I mean is, if I enter an email for a new user but neglect to enter a username, click submit, my currently logged in profile email updates to match the Reg form email address. This not only changes my user email but will also throw a "this email already exists" if I try to re-submit, leaving the user confused as to what's going on.

    Is there a way to prevent the current user info from changing in a case like this? Thanks in advance for any help, Gravity Forms rules!

    Posted 12 years ago on Tuesday January 10, 2012 | Permalink
  2. Hi 44pixels,

    This sounds like an issue introduced by custom code of some sort or potentially a plugin conflict. The User Registration does not attempt to update any user meta until after the user is created which does not happen until after the form has been validated and successfully submitted.

    Are you using any custom code with this?

    Posted 12 years ago on Tuesday January 17, 2012 | Permalink