I don't know if I am missing something but when I try to post user like this :
curl -H "Content-Type: application/json" -X POST -d '{"username":"toto",email:"toto@go.lf","password":"qsdsqd"}' http://localhost:1337/register
Same result with application/x-www-form-urlencoded
(this should call UserController.create)
I always get :
verbose: Sending 403 ("Forbidden") response: You are not permitted to perform this action.
Why ? Policies are same as sails-permissions example.
How can I use correctly /register route for posting data ?
I don't know if I am missing something but when I try to post user like this :
curl -H "Content-Type: application/json" -X POST -d '{"username":"toto",email:"toto@go.lf","password":"qsdsqd"}' http://localhost:1337/register
Same result with application/x-www-form-urlencoded (this should call UserController.create)I always get :
verbose: Sending 403 ("Forbidden") response: You are not permitted to perform this action.
Why ? Policies are same as sails-permissions example. How can I use correctly /register route for posting data ?