From 675b8e7741527a3d625633762e7836e8bcdcb6b4 Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Fri, 22 May 2020 21:25:20 +0200 Subject: [PATCH] Remove unused variable. TODO: userModel.getOne() with selected fields in arg --- server/utils/access.js | 1 - 1 file changed, 1 deletion(-) diff --git a/server/utils/access.js b/server/utils/access.js index 6b8eac8d..66ff9520 100644 --- a/server/utils/access.js +++ b/server/utils/access.js @@ -17,7 +17,6 @@ module.exports = UserModel.getOne("sessionToken", req.cookies.token, (err, user) => { if (!!user) { req.userId = user.id; - req.userName = user.name; loggedIn = true; } else { // Token in cookies presumably wrong: erase it -- 2.44.0