From d7a26cbb4853a4bf3c0d2026c893cef830bc8baf Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Sun, 28 Jan 2018 00:35:20 +0100 Subject: [PATCH] Fix 'courses' link --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }); -- 2.44.0