> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: changeLoginEmail(_id: string, newEmail: string, options: ChangeLoginEmailOptions) # Method package: wixMembersV2 # Method menu location: wixMembersV2 --> authentication --> changeLoginEmail # Method Link: https://dev.wix.com/docs/velo/apis/wix-members-v2/authentication/change-login-email.md # Method Description: Changes a member's login email address. 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 collaborators can use `changeLoginEmail()` to change another member's login email. Members who are not site collaborators can use `changeLoginEmail()` to change their own login email only. > **Note:** `changeLoginEmail()` cannot be used to change the login email of a site collaborator. Site collaborators can change their login emails from their Wix [account settings](https://manage.wix.com/account/account-settings). # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## changeLoginEmail example for dashboard page code ```javascript import { authentication } from 'wix-members.v2'; async function changeLoginEmail(id, newEmail, options) { try { const result = await authentication.changeLoginEmail(id, newEmail, options); return result; } catch (error) { console.error(error); // Handle the error } } ``` ## changeLoginEmail example for exporting from backend code ```javascript import { authentication } from 'wix-members.v2'; import { webMethod, Permissions } from 'wix-web-module'; import { elevate } from 'wix-auth'; const elevatedChangeLoginEmail = elevate(authentication.changeLoginEmail); export const changeLoginEmail = webMethod( Permissions.Anyone, async (id, newEmail, options) => { try { const result = await elevatedChangeLoginEmail(id, newEmail, options); return result; } catch (error) { console.error(error); // Handle the error } } ); ``` ---