Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #27 from sandman10000/master

Make mongoose-auth comply with a recent everyauth commit.
  • Loading branch information...
commit 3d02e377cc84c9eb400a0575dc914cb7719911c1 2 parents c8ef9d2 + c62019b
@bnoguchi authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 index.js
View
4 index.js
@@ -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);
};
Please sign in to comment.
Something went wrong with that request. Please try again.