diff options
Diffstat (limited to 'bucky/util')
| -rw-r--r-- | bucky/util/auth.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bucky/util/auth.js b/bucky/util/auth.js index dd3df6f..97e25b4 100644 --- a/bucky/util/auth.js +++ b/bucky/util/auth.js @@ -56,6 +56,7 @@ var auth = module.exports = { } db.createUser(data).then(() => next()) }, + passport.authenticate("local"), function (req, res, next) { var username = req.user.get('username') Promise.all([ @@ -79,7 +80,6 @@ var auth = module.exports = { }), ]).then(() => next()) }, - passport.authenticate("local"), auth.login) app.put("/api/login", passport.authenticate("local"), |
