diff --git a/src/routes/authentication.js b/src/routes/authentication.js index 247d19777a..a0f420458d 100644 --- a/src/routes/authentication.js +++ b/src/routes/authentication.js @@ -24,7 +24,7 @@ app.use(passport.session()); app.use(function(req, res, next) { - req.uid = req.user ? parseInt(req.user.uid) : 0; + req.uid = req.user ? parseInt(req.user.uid, 10) : 0; next(); });