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
265 stars 141 forks source link

Don't allow empty passwords #92

Closed salttis closed 8 years ago

LancelotP commented 8 years ago

Are you still able to create other passports such as Facebook even with this field required in the passport model ?

If I remember well the only way to make sure the password is set and does not break other passports methods, is to change the lifecycle methods from the passport model.

salttis commented 8 years ago

Ah, yep. So it needs to be moved to the local strategy.