Sign up control
Hey guys. Is there a way to disable sign up from the public (authClient) but still have it enabled for the server code (auth.api)? I don’t want anyone to be able to sign up. I want admins to create users. I’m imagining that a smart person who knows how the auth clients calls the API would be able to create users if it is enabled .
7 Replies
emailAndPassword.disableSignUp
Turning that on also prevented me from creating a user using the sign up on auth.api
Solution
you can use hooks then
Alright. I’ll try this out. Thank you
I wonder if this would be a cleaner way to implement what I was describing. I just need to check if it still allows the auth.api sign up to work

This didn't work
Caveat is that there is no c.path... you would need to use c.request.url. There is allso no c.error