bnoguchi/mongoose-auth

Check for "approved" user on login?

danielmahon opened this issue · 1 comments

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.

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