Permalink
Browse files

fix mongoose-auth login / logout via github

  • Loading branch information...
1 parent 6e271b0 commit 182daac8f8acda08bea4616b15deaf09033dff8b @gerad gerad committed Aug 24, 2012
Showing with 45 additions and 31 deletions.
  1. +2 −1 models/person.coffee
  2. +42 −29 npm-shrinkwrap.json
  3. +1 −1 package.json
View
@@ -26,12 +26,13 @@ PersonSchema.plugin auth,
everymodule:
everyauth:
moduleTimeout: 10000
- User: -> Person
+ findUserById: (userId, fn) -> Person.findById(userId, fn)
@gerad

gerad Aug 24, 2012

Owner

it was a lucky guess that this worked

handleLogout: (req, res) ->
req.logout()
res.redirect(req.param('returnTo') || req.header('referrer') || '/')
github:
everyauth:
+ scope: 'user'
redirectPath: '/login/done'
myHostname: env.hostname
appId: env.github_app_id
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -28,7 +28,7 @@
"express": "*",
"jade": "*",
"mongoose": "*",
- "mongoose-auth": "*",
+ "mongoose-auth": "git://github.com/nko3/mongoose-auth.git#master",
@gerad

gerad Aug 24, 2012

Owner

pulling from our own fork for now

"mongoose-types": "*",
"postageapp": "*",
"relative-date": "*",

0 comments on commit 182daac

Please sign in to comment.