trailsjs / sails-auth

Passport-based User Authentication system for sails.js applications. Designed to work well with the sails-permissions module.
https://www.npmjs.org/package/sails-auth
MIT License
266 stars 141 forks source link

Can only create user using user create action #101

Closed dottodot closed 9 years ago

dottodot commented 9 years ago

v1.3.1

It seems the only way to create a user is via the user create action. For example if I create a user on a different route but still using User.create the user model is created but the passport model isn't. Is there something I'm missing to properly create a user on a different route?

dottodot commented 9 years ago

Typical, just after posting this found the answer on sails-permissions. Need to use User.register instead