{"action":"created","issue":{"url":"https://api.github.com/repos/ga-dc/project3/issues/125","labels_url":"https://api.github.com/repos/ga-dc/project3/issues/125/labels{/name}","comments_url":"https://api.github.com/repos/ga-dc/project3/issues/125/comments","events_url":"https://api.github.com/repos/ga-dc/project3/issues/125/events","html_url":"https://github.com/ga-dc/project3/issues/125","id":121730382,"number":125,"title":"Passport issue","user":{"login":"ddayporter","id":14064144,"avatar_url":"https://avatars.githubusercontent.com/u/14064144?v=3","gravatar_id":"","url":"https://api.github.com/users/ddayporter","html_url":"https://github.com/ddayporter","followers_url":"https://api.github.com/users/ddayporter/followers","following_url":"https://api.github.com/users/ddayporter/following{/other_user}","gists_url":"https://api.github.com/users/ddayporter/gists{/gist_id}","starred_url":"https://api.github.com/users/ddayporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddayporter/subscriptions","organizations_url":"https://api.github.com/users/ddayporter/orgs","repos_url":"https://api.github.com/users/ddayporter/repos","events_url":"https://api.github.com/users/ddayporter/events{/privacy}","received_events_url":"https://api.github.com/users/ddayporter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-11T15:34:02Z","updated_at":"2015-12-11T15:43:23Z","closed_at":null,"body":"Hi there,\r\n\r\nI'm having a hard time with passport. Trying to do local and twitter login, followed the passport lesson plan pretty closely but have possibly over-tweaked it to try to hack it into our single page app. What I'm now trying to accomplish is having backend views render the login activities and then go back to our single page app. When I try to do a Twitter login, it hangs for a long time and then the browser says \"No Data Received\". When I try to sign up with the local strategy, my app crashes and I get this error:\r\n```\r\n/Users/rachel2/wdi/projects/tldr-history/config/passport.js:63\r\n        newUser.local.password = newUser.encrypt(password);\r\n                                         ^\r\n\r\nTypeError: newUser.encrypt is not a function\r\n```\r\n\r\nI have bcrypt required in my app, not sure where to look next.. Any ideas?\r\n\r\nPS I read through Mo's issue and it looks like you guys were recommending doing user seeds before implementing passport? I didn't realize we needed user seeds - would that help my issue?"},"comment":{"url":"https://api.github.com/repos/ga-dc/project3/issues/comments/163967676","html_url":"https://github.com/ga-dc/project3/issues/125#issuecomment-163967676","issue_url":"https://api.github.com/repos/ga-dc/project3/issues/125","id":163967676,"user":{"login":"ddayporter","id":14064144,"avatar_url":"https://avatars.githubusercontent.com/u/14064144?v=3","gravatar_id":"","url":"https://api.github.com/users/ddayporter","html_url":"https://github.com/ddayporter","followers_url":"https://api.github.com/users/ddayporter/followers","following_url":"https://api.github.com/users/ddayporter/following{/other_user}","gists_url":"https://api.github.com/users/ddayporter/gists{/gist_id}","starred_url":"https://api.github.com/users/ddayporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddayporter/subscriptions","organizations_url":"https://api.github.com/users/ddayporter/orgs","repos_url":"https://api.github.com/users/ddayporter/repos","events_url":"https://api.github.com/users/ddayporter/events{/privacy}","received_events_url":"https://api.github.com/users/ddayporter/received_events","type":"User","site_admin":false},"created_at":"2015-12-11T15:43:23Z","updated_at":"2015-12-11T15:43:23Z","body":"wait, I put the console log in the wrong spot.. my first console log was before it actually passed in the data. d'oh. I tried it right after it adds the email and this is what I got:\r\n```\r\n{ local: { email: 'rachel@email.com' },\r\n  twitter: {},\r\n  _id: 566aeec7fbf38db43374ab88 }\r\n```\r\nI then tried putting it after the password.encrypt line and the app crashed before logging any output"}}