kasperisager/sails-generate-auth — pull request #137 by ansorensen (2014-12-27 00:55:01+00:00)
Title: Fix login function to work with default sails

The default Sails authSession policy looks for
req.session.authenticated. Added this session property in the login
success callback so it will work out of the box with default Sails.

Those who want a little fancier authorization verification can edit the
default Sails policy themselves.