New Members
When a new member registers for an account on your site, they can't immediately login. They must be approved as a member (which can be set to automatic), and you may wish to have them verify their email.
You can edit these settings in your site's dashboard.
Email verification
You may want to check that a new member is using their own email address, not using someone else's or a fake email address.
To run this check, require members to verify their email address once they've signed up in one of the following ways:
- In your site's dashboard, under Ask new members to confirm their email.
- Using code. This example includes email verification through code.
Manual vs automatic approval
The register function behaves differently depending on your site's member signup settings.
Manual approval
When manual approval is enabled, everyone who signs up must then be approved. Immediately after signing up, a new member's status
is "PENDING"
.
You can approve a new member by:
- Passing the returned
approvalToken
toapproveByToken()
from wix-members-backend. - Calling
approveByEmail()
from wix-members-backend. - Navigating to your site members list in your dashboard and approving the new member there.
Note: If you need the member
object, use register()
from wix-members-backend.
Automatic approval
When automatic approval is enabled, everyone who signs up is approved. Immediately after signing up, a new member's status
is "ACTIVE"
.
The member is immediately logged in to the site.