**/Users/fred/Sails-Projects/activityOverlord/api/controllers/SessionController.js:102
res.redirect('/user/show/' + user.id);
^
TypeError: Cannot read property 'id' of undefined
at /Users/fred/Sails-Projects/activityOverlord/api/controllers/SessionController.js:102:39**
Something wrong here that you did not cover and cannot find any comments on SailsCast that address this.
This was just after completing: Building a Sails Application: Ep14 - User Authentication and Restricting Access Through Policies.
Any help is much appreciated.
Kind Regards,
Fred Shequine
Web Developer