disable an action when a user is already pending for approval

Hi,

When calling wixUsers.register the first time, an object is returned confirming that the user is pending admin approval. (“status”: “Pending”)
If a user then tries to register a second time 403 is returned.

You can use this logic to only send the email where appropriate.
In case 403 is returned, display an error notifying the user that he is already pending approval