RealFilling/farmshares — pull request #9 by Nevtep (2013-03-19 11:11:52+00:00)
Title: Hotfix use authorization method

req.session.user was being saved as a POJO loosing AccountModel methods and properties.

This changes now save the account.id to the session and add middleware to the auth route to load the currentUser to the req. Should have some validation to only run at base routes and not for every file.

App.js has been modified to include this middleware.