bnoguchi / mongoose-auth

User authentication plugin for mongoose nodejs orm
https://github.com/bnoguchi/mongoose-auth
740 stars 113 forks source link

Check for "approved" user on login? #92

Closed danielmahon closed 12 years ago

danielmahon commented 12 years ago

How would I go about adding the functionality (or is it already inherit) to only allow those to login who have been "approved" after registration. I added the approved key into the Schema but Im having a hard time figuring out where to place the check against it. Thanks for your help.

danielmahon commented 12 years ago

Nevermind, I put the check after the authentication in my routing. Not sure why I was trying to do it the difficult way.