From: Benjamin Auder Date: Sat, 27 Jan 2018 23:35:20 +0000 (+0100) Subject: Fix 'courses' link X-Git-Url: https://git.auder.net/%7B%7B%20path%28%27mixstore_store_package_view%27%2C%20%7B%20id:%20key%20%7D%29%20%7D%7D?a=commitdiff_plain;h=d7a26cbb4853a4bf3c0d2026c893cef830bc8baf;p=qomet.git Fix 'courses' link --- diff --git a/app.js b/app.js index 7dc3b41..5e7fdfe 100644 --- a/app.js +++ b/app.js @@ -31,7 +31,7 @@ app.use(express.static(path.join(__dirname, 'public'))); // Before any request, check cookies app.use(function(req, res, next) { res.locals.loggedIn = !!req.cookies.token; - res.locals.myInitials = req.cookies.myInitials; //may be undefined + res.locals.myInitials = req.cookies.initials; //may be undefined next(); });