I'm sorry for such a big pull request. I had to add the user routes before I could add the unit tests for the user controller, and I had to add some of the files from Benjamin's issues for the index views, routes, and controller so the user routes would work.
I also had to add the signin and signup views from issues #15 and #16. But, the tests are written and passing, and the application now runs with the EJS views on the home page, the signup page, the signin page and the signout page.
I also had to change the user model because passport needs a field called 'username' for it's local authentication strategy, so I'm having the form display "Email" but it is called username in all the backend code so passport will work.
I built this on top of the usercontroller branch, since this code was dependent on that as well.
Resolves #2 , resolves #8, resolves #11, resolves #16, resolves #15, resolves #9, resolves #3.
I'm sorry for such a big pull request. I had to add the user routes before I could add the unit tests for the user controller, and I had to add some of the files from Benjamin's issues for the index views, routes, and controller so the user routes would work.
I also had to add the signin and signup views from issues #15 and #16. But, the tests are written and passing, and the application now runs with the EJS views on the home page, the signup page, the signin page and the signout page.
I also had to change the user model because passport needs a field called 'username' for it's local authentication strategy, so I'm having the form display "Email" but it is called username in all the backend code so passport will work.
I built this on top of the usercontroller branch, since this code was dependent on that as well.
Thanks!