From b29bf8bdc1d43699160d542a636fb1e65362b7ae Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 12 Dec 2017 06:06:41 +0100 Subject: bump last seen --- bucky/util/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bucky/util/auth.js') 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"), -- cgit v1.2.3-70-g09d2