summaryrefslogtreecommitdiff
path: root/bucky/util/auth.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-12-12 06:06:41 +0100
committerJules Laplace <julescarbon@gmail.com>2017-12-12 06:06:41 +0100
commitb29bf8bdc1d43699160d542a636fb1e65362b7ae (patch)
treec298274a5cfc2dbe715b4b1572896fc0adc36131 /bucky/util/auth.js
parent5dadac51b65c714e2235f28c000a646716e2a63a (diff)
bump last seen
Diffstat (limited to 'bucky/util/auth.js')
-rw-r--r--bucky/util/auth.js2
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"),