From: Benjamin Auder Date: Fri, 22 May 2020 19:25:20 +0000 (+0200) Subject: Remove unused variable. TODO: userModel.getOne() with selected fields in arg X-Git-Url: https://git.auder.net/DESCRIPTION?a=commitdiff_plain;h=675b8e7741527a3d625633762e7836e8bcdcb6b4;p=vchess.git Remove unused variable. TODO: userModel.getOne() with selected fields in arg --- 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