Skip to content

Fatal Error in sessionController.js, can't continue with the Tutorials! #27

@fshequin

Description

@fshequin

**/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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions