Stormpath, how to stop the user from registering

I have a stormpath application on my Porfolio website that I use for logging to update the list of my blog / projects. I want to remove the possibility of user registration (what they could do by visiting site.com/register).

How to do it?

I work on Node.js and Express.js if that helps

If you need more information, please ask.

+4
source share
1 answer

If you use the express-stormpath library (which I think you are), you can disable the registration function by entering the following middleware settings:

app.use(stormpath.init(app, {
  enableRegistration: false  // this disables all registration functionality
}));

=)

+4

All Articles