How can we turn off "New Site Member Request" emails that get sent on pending registration?

I will be (hopefully) on-boarding quite a few members to my site programmatically using back-end functions called by a mobile app. The registration flow is such that I have set membership approval to be manual, then I use wix-users-backend APIs to register and confirm the individual, which automatically moves them from the pending state to the active state.

All good, all working.

However, a “side affect” of setting approval to be “manual” is that each time a member registers through my app I receive a “New Site Member Request” email. How can I shut that off? These are useless to me - nobody is manually approving anything, I’m using a 2FA approach and the user enters a code into my app, clicks a button, and back-end functions confirm the registration.

All that works fine too - I just don’t want to have to deal with thousands of emails!

I suppose you can just change member settings in Member Signup form, like this:
https://prnt.sc/q289yq

Also check out this link:
https://support.wix.com/en/article/editing-your-member-signup-settings-for-the-default-form

Thanks, but that doesn’t help. I don’t want to allow ‘everyone’ to be a member automatically. I want to force a 2FA flow, which requires ‘manual approval’. However, this ‘manual approval’ doesn’t actually have to be ‘manual’ (i.e. the Site Owner having to approve). It can also be satisfied through the registration API programmatically as I mentioned in my original post.

The flow itself is all working - my app provides input fields for the user to fill out, back-end registration API is called (and Wix properly adds them to Contacts, and also to Members with a PENDING status), an email with a 6 digit code is automatically sent to the user, the user puts that code into the app and the app calls a second back-end API to confirm the registration. Wix automatically then makes that user ‘ACTIVE’.

This all works great. However, it seems a by-product of choosing to ‘manually approve’ is that an email gets sent automatically to the site owner indicating the ‘New Site Member Request’. This is what I want turned off.

So - leave the ability to manually approve in, but remove the automatic email that is sent to the Site Owner.

You issue is not really related to code. I would recommend that you contact the Wix support team . You’ll get probably get better help for your issue there.

Of course, what you want is probably more of a Feature Request .

Also, just to add a further note on this, you do get the same result if you use certain Wix apps like Wix Forms etc, where you will get an automatic email reply sent out to the user from Wix regardless of if you have setup your own triggered email or Wix Automation reply for example, so basically as you have stated in your post that they are getting two emails confirming the same thing.

I have a website setup that allows the MD to manually approve any new member applications by himself, however this is not done through through the backend so that the new site member request email through Wix Automation gets sent to himself directly and not to me all the time.

Then they can be manually approved by the MD and another email from Wix Automations is sent out saying that they are now a site member, if it had been done through the backend like yourself, then it would have been a no go as it would have sent out the email automatically from Wix and from the site’s own Wix Automations.

This was put to Wix Support at the start of this year and they stated then that these replies could not be turned off by ourselves, so as far as I can see, nothing has been changed as of yet and these automatic email replies are not preventable by ourselves.

However, as this is nearly the end of the year now, I would thoroughly suggest that you contact Wix Support as Yisrael has suggested and see if anything has changed since.

Although, with your setup it probably won’t be viable to turn off the new site member request and site member is now approved replies etc, as they are part and parcel of the approval procedure through the backend method.

https://www.wix.com/corvid/reference/wix-users-backend.html#register

Register a user sending an email for confirmation

This example demonstrates a common email verification flow. A user is initially registered but not yet approved. At registration, a verification email is sent with a link to a verification page. When a user goes to the verification page, the approval is granted and the user is logged into the site.
The code is split between three locations:

  • A backend web module named register.jsw .

  • The page code for the page where users register.

  • The page code for the page where users confirm their registration.

/*******************************

  • backend code - register.jsw *
    *******************************/
    import wixUsers from ‘wix-users-backend’;

export function doRegistration(email, password, firstName, lastName) {
// register the user
return wixUsers.register(email, password, {
“contactInfo”: {
“firstName”: firstName,
“lastName”: lastName
}
} )
.then( (results) => {
// user is now registered and pending approval
// send a registration verification email
wixUsers.emailUser(‘verifyRegistration’, results.user.id, {
“variables”: {
“name”: firstName,
“verifyLink”: http://yourdomain.com/post-register?token=${results.approvalToken}
}
} );
} );
}

export function doApproval(token) {
// approve the user
return wixUsers.approveByToken(token)
// user is now active, but not logged in
// return the session token to log in the user client-side
.then( (sessionToken) => {
return {sessionToken, “approved”: true};
} )
.catch( (error) => {
return {“approved”: false, “reason”: error};
} );
}

/*********************************

  • client-side registration code *
    *********************************/
    import wixUsers from ‘wix-users’;
    import {doRegistration} from ‘backend/register’;

export function button_click(event) {
let email = // the user’s email address
let password = // the user’s password
let firstName = // the user’s first name
let lastName = // the user’s last name

doRegistration(email, password, firstName, lastName)
.then( () => {
console.log(“Confirmation email sent.”);
} );
}

/**************************************

  • client-side post-registration code *
    **************************************/
    import wixLocation from ‘wix-location’;
    import wixUsers from ‘wix-users’;
    import {doApproval} from ‘backend/register’;

$w.onReady( () => {
// get the token from the URL
let token = wixLocation.query.token;

doApproval(token)
.then( (result) => {
if (result.approved){
// log the user in
wixUsers.applySessionToken(result.sessionToken);
console.log(“Approved”);
}
else {
console.log(“Not approved!”);
}
} );
} );

@yisrael-wix

Thanks for the suggestion(s), I’ll contact support. I’ve already posted a request in the features forum to be able to turn off the automated email.

@givemeawhisky - the registration flow I have is working just fine (and I am using a 2FA approach with emailing a 6 digit code which the user has to enter in to my mobile app rather than an email with a huge token string in it). The issue is how to stop the email from getting automatically generated.

Another issue with the site member request functionality is that I get a dozen bot generated site member requests per day in my Wix account’s Pending pile so there’s a ton of spammy junk I have to delete. Is there anyway to shut down request submissions and make it a “by invitation only” setting? I’m really tired of managing bot spam.