Registers a new site member.
register()
returns a Promise that resolves to a RegistrationResult
object when the member is registered or pending registration.
The specified password
must be between 4 and 100 ASCII characters.
See New Members (SDK | Velo) to learn about verifying emails and approving members.
Notes:
The frontend Members APIs aren't fully functional when previewing a site. View a published version of a site to see their complete functionality.
The member data in the resolved Promise only includes custom fields from a site's contacts if those fields are added to a site's members in a dashboard.
When a new member signs up using an email address
that's already in a site's Contact List,
a notification is displayed
and a confirmation email is sent to the new member.
To register a member without displaying the notification, use
register()
(SDK | Velo)
(this doesn't suppress the confirmation email).
When a site's member signup settings are set to automatic approval (see New Members (SDK | Velo)),
calling the frontend register()
in page code is as secure as calling register()
in backend code,
unless you are implementing custom site registration using code.
However, when registration is set to [anual approval (see New Members (SDK | Velo)),
calling register()
from the backend code allows you to build more secure approval flows
by keeping tokens hidden from the frontend.
Email address the new member will use to log in.
Password to assign to the new member. Must be 4 to 100 ASCII characters.
Registration options.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.