irlnathan / activityoverlord

An application I'm building to learn sails.js
317 stars 101 forks source link

removed auth policy on user create, added login after user creation #1

Closed mjgs closed 11 years ago

mjgs commented 11 years ago

I noticed that after cloning the repo (ep12) and starting up the app, it wasn't possible to create a new user unless you already had a user created and were logged in. I removed the auth policy on the create method, so it's possible to create a user without being logged in, and I also added a few lines to log a new user in once they are created so that their user view renders without error after the redirect. Hope this is helpful!

The tutorials are really great by the way, thanks.

irlnathan commented 11 years ago

Thanks mjgs! I made a screencast of my brilliant error and fix as well as an update to the repo.