diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-12-12 06:06:41 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-12-12 06:06:41 +0100 |
| commit | b29bf8bdc1d43699160d542a636fb1e65362b7ae (patch) | |
| tree | c298274a5cfc2dbe715b4b1572896fc0adc36131 /bucky/util | |
| parent | 5dadac51b65c714e2235f28c000a646716e2a63a (diff) | |
bump last seen
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"), |
