How to edit Email and Password
Support › MB User Profile › How to edit Email and PasswordResolved
- This topic has 10 replies, 4 voices, and was last updated 6 years, 1 month ago by
Anh Tran.
-
AuthorPosts
-
January 9, 2019 at 8:59 PM #12967
Lisa Tally
ParticipantI am trying to create a custom user profile/my account page. I'd like to include name, email, and password. I've figured out how to show and edit name, but I can't figure out how to show the email and password fields.
Per the documentation, I've included the id "rwmb-user-info" in my shortcode id list but nothing is showing:
[mb_user_profile_info id="my-account,rwmb-user-info" submit_button="Submit" confirmation="Your information has been successfully updated." label_submit="Update"]
The id of "my-account" is a custom field set with
first_name
andlast_name
I've tried adding fields with id's ofuser_email
andemail
but they aren't populating with the user email.How do I include password? How do I include email?
Thanks
January 25, 2019 at 4:42 AM #13127Lisa Tally
ParticipantAny word on this? This issue is holding back the deployment of a feature on our website.
January 25, 2019 at 7:08 PM #13133Anh Tran
KeymasterHi Purdue, this is a bug in our AIO plugin. Are you using it?
To fix this, please use the MB User Profile extension separately at the moment. We'll fix the AIO soon.
January 25, 2019 at 8:11 PM #13135Lisa Tally
ParticipantThat worked! But how do I allow users to change their email as well?
February 7, 2019 at 10:11 PM #13235pza
ParticipantI'm also wondering if the user may edit their Email Address using the MB User Profile plugin?
I tried putting an "email" field in the "default-fields" group but it doesn't update their profile.
February 13, 2019 at 3:43 PM #13300Anh Tran
KeymasterHi guys,
To edit user email, simply create a meta box (or a new field in an existing meta box) with id
user_email
. And then include the meta box into the shortcode. Here is the code I used to test.February 13, 2019 at 9:18 PM #13309pza
ParticipantThanks. Using
user_email
seems to work for updating the address in the profile.But on the frontend, it is not pre-filled with the user's default email address until the user updates it using the
mb_user_profile_info
form.Can I make it auto-populate the
user_email
field with their account email address by default?Also in the backend "Edit users" page, the profile fields appear twice. If I change the (WordPress standard) email field, but not the MB field, they become out of sync. Is this expected, or should there be only 1 of each field?
February 14, 2019 at 4:01 PM #13325Anh Tran
KeymasterYes, it's possible to auto-fill the current user email. See the updated script.
Regarding edit user profile in the back end, this technique is meant for use for editing user profile in the front end only.
February 14, 2019 at 8:16 PM #13347Lisa Tally
ParticipantThanks! This is very helpful to know.
March 14, 2019 at 7:13 PM #13732Infolu Official
ParticipantHello, I am looking at the script that allows to change the email of the account, originally in wordpress when changing an email in the back end, the user receives in the email a link to confirm this change, already in the script this does not happen. Is this behavior correct?
how can I make the user at least need to confirm the password before changing the same email in facebook settings?
March 15, 2019 at 11:27 AM #13746Anh Tran
KeymasterHi Infolu, you just need to include the meta box with ID
rwmb-user-info
to the list of meta boxes in the shortcode, like this:[mb_user_profile_info id="your-meta-box-id,rwmb-user-info"]
-
AuthorPosts
- You must be logged in to reply to this topic.