changeLoginEmail( )


Changes a member's login email address.

The changeLoginEmail() function returns a Promise that resolves to an updated member object when the specified member's login email address is changed.

After running this function, the specified member can log in with the new email address. If the member uses social login (for example, Google login) and the member tries to log in with the old email address, they will be re-registered with the old email address.

Site contributors can use changeLoginEmail() to change another member's login email. Members who are not site contributors can use changeLoginEmail() to change their own login email only.

Note: changeLoginEmail() cannot be used for site contributors. Site contributors can change their login emails from their Wix account settings.

Method Declaration
Copy
Method Parameters
memberIdstringRequired

Member ID.


newEmailstringRequired

New login email address.

Returns
Return Type:Promise<Member>
Was this helpful?
Yes
No