reverse change that was locking users out
This commit is contained in:
4
app.js
4
app.js
@ -193,9 +193,7 @@ app.use(helmet.contentSecurityPolicy({
|
||||
|
||||
app.use(function (req, res, next) {
|
||||
// Make user object available in templates.
|
||||
fullUser = req.user ? req.user : null;
|
||||
if (fullUser) fullUser.password = null;
|
||||
res.locals.user = fullUser;
|
||||
res.locals.user = req.user;
|
||||
next();
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user