> 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: register(email: string, password: string, options: RegisterOptions) # Method package: wixMembersV2 # Method menu location: wixMembersV2 --> authentication --> register # Method Link: https://dev.wix.com/docs/velo/apis/wix-members-v2/authentication/register.md # Method Description: Registers a new site member. The specified `password` must be between 4 and 100 ASCII characters. >**Note:** The `register()` function behaves differently depending on your site's [member signup settings](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-members/enabling-custom-site-registration.md). # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## register example for dashboard page code ```javascript import { authentication } from 'wix-members.v2'; async function register(email, password, options) { try { const result = await authentication.register(email, password, options); return result; } catch (error) { console.error(error); // Handle the error } } ``` ## register 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 elevatedRegister = elevate(authentication.register); export const register = webMethod( Permissions.Anyone, async (email, password, options) => { try { const result = await elevatedRegister(email, password, options); return result; } catch (error) { console.error(error); // Handle the error } } ); ``` ---