{"action":"opened","issue":{"url":"https://api.github.com/repos/joeeames/MEANAppsFiles/issues/10","labels_url":"https://api.github.com/repos/joeeames/MEANAppsFiles/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/joeeames/MEANAppsFiles/issues/10/comments","events_url":"https://api.github.com/repos/joeeames/MEANAppsFiles/issues/10/events","html_url":"https://github.com/joeeames/MEANAppsFiles/issues/10","id":65769219,"number":10,"title":"Persisting Login between Page Refreshes Issue...","user":{"login":"timothykrichards","id":10673764,"avatar_url":"https://avatars.githubusercontent.com/u/10673764?v=3","gravatar_id":"","url":"https://api.github.com/users/timothykrichards","html_url":"https://github.com/timothykrichards","followers_url":"https://api.github.com/users/timothykrichards/followers","following_url":"https://api.github.com/users/timothykrichards/following{/other_user}","gists_url":"https://api.github.com/users/timothykrichards/gists{/gist_id}","starred_url":"https://api.github.com/users/timothykrichards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timothykrichards/subscriptions","organizations_url":"https://api.github.com/users/timothykrichards/orgs","repos_url":"https://api.github.com/users/timothykrichards/repos","events_url":"https://api.github.com/users/timothykrichards/events{/privacy}","received_events_url":"https://api.github.com/users/timothykrichards/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-01T20:09:55Z","updated_at":"2015-04-01T20:09:55Z","closed_at":null,"body":"Hi Joe,\r\n\r\nI'm going through your course and it's great!\r\n\r\nI've run into an issue that I'm hoping you can direct me toward a solution.\r\n\r\nI'm going through the \"Persisting Login between Page Refreshes\" video in the \"Security and Authorization\" section of your course and am at the part where I change the code in routes.js from \"res.render('index')\" to res.render('index', {bootstrappedUser: req.user}).\r\n\r\nWhen I go to refresh the page it renders the following:\r\n\r\nReferenceError: req is not defined\r\nat C:\\Dev\\FireflyXP\\server\\config\\routes.js:25:25\r\nat Layer.handle [as handle_request] C:\\Dev\\FireflyXP\\node_modules\\express\\lib\\router\\layer.js:82:5)\r\nat next (C:\\Dev\\FireflyXP\\node_modules\\express\\lib\\router\\route.js:110:13)\r\nat Route.dispatch (C:\\Dev\\FireflyXP\\node_modules\\express\\lib\\router\\route.js:91:3)\r\nat Layer.handle [as handle_request] C:\\Dev\\FireflyXP\\node_modules\\express\\lib\\router\\layer.js:82:5)\r\nat C:\\Dev\\FireflyXP\\node_modules\\express\\lib\\router\\index.js:267:22\r\nat Function.proto.process_params C:\\Dev\\FireflyXP\\node_modules\\express\\lib\\router\\index.js:321:12)\r\nat next (C:\\Dev\\FireflyXP\\node_modules\\express\\lib\\router\\index.js:261:10)\r\nat SendStream.error (C:\\Dev\\FireflyXP\\node_modules\\express\\node_modules\\serve-static\\index.js:107:7)\r\nat SendStream.emit (events.js:95:17)\r\n\r\nit seems to be having a problem with the req.user variable.  Any ideas on what may be wrong?"}}