Update profile email problem

This topic contains 4 reply and 2 voices, and was last updated by towhid 9 years, 3 months ago
Viewing 4 Posts - 1 through 4 (of 4 total)
Author Posts
December 30, 2014 at 2:51 pm 33157
towhid hi, When a user updates EMAIL with fronted Registration Form like[wpuf_profile type="profile" id=“xx”], new addresses are always updated, even the new address is already occupied. The problem is the same address will be registered to different users. How to solve this? thanks
December 30, 2014 at 5:35 pm 33167
towhid towhid

Hello Tao,

Would you please let me clear, are you trying to register new user or update an existing user? Also please elaborate your question in more details.

Thank You 🙂

December 31, 2014 at 10:04 pm 33240
Tao Tao

Hi,

Here is my Registration Form.

Short-code [wpuf_profile type="registration" id="7"] for register a new user.
Short-code [wpuf_profile type="profile" id="7"] for an existing user update profile, include email field.

An existing user A update his email from a@a.com to b@b.com, new addresses are always updated, even the new address is already used by user B. Now user A and user B have the same email address.

The problem is when user A and user B login WP with email.

Sorry for my bad english, and hope you can understand the problem.

happy new year.

Tao

January 1, 2015 at 12:07 pm 33251
towhid towhid

Hello Tao,

I have tested your issue and found the problem. I have to discuss with our developer team about this. Hope they will help me to fix this. Please allow me some time.

Thank You 🙂

January 7, 2015 at 4:31 pm 33574
towhid towhid

Please open class/frontend-form-profile.php and find

if ( $this->search( $user_vars, 'name', 'description' ) ) {
     $userdata['description'] = $_POST['description'];
}

after that code block paste this below code

if ( $userinfo->user_email != trim( $_POST['user_email'] ) ) {
    if( email_exists( trim( $_POST['user_email'] ) ) ) {
        $this->send_error( __( 'That E-mail is already exists', 'wpuf' ) );
    }
}

Please let me know that this solution works for you or not.

Thank You 🙂

Viewing 4 Posts - 1 through 4 (of 4 total)