Permalink
Browse files

Merge pull request #27 from sandman10000/master

Make mongoose-auth comply with a recent everyauth commit.
  • Loading branch information...
2 parents c8ef9d2 + c62019b commit 3d02e377cc84c9eb400a0575dc914cb7719911c1 @bnoguchi committed Jun 20, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 index.js
View
@@ -75,10 +75,10 @@ exports = module.exports = function plugin (schema, opts) {
// Delegate middleware method to
// everyauth's middleware method
- exports.middleware = everyauth.middleware;
+ exports.middleware = everyauth.middleware.bind(everyauth);
// Delegate helpExpress method to everyauth.
// Adds dynamic helpers such as loggedIn,
// accessible from the views
- exports.helpExpress = everyauth.helpExpress;
+ exports.helpExpress = everyauth.helpExpress.bind(everyauth);
};

0 comments on commit 3d02e37

Please sign in to comment.