Conditionally allow new user registration

Does this help?

https://developer.neoncrm.com/api/accounts/authenticating-users/