projects
/
vchess.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d984579
)
Remove unused variable. TODO: userModel.getOne() with selected fields in arg
author
Benjamin Auder
<benjamin.auder@somewhere>
Fri, 22 May 2020 19:25:20 +0000
(21:25 +0200)
committer
Benjamin Auder
<benjamin.auder@somewhere>
Fri, 22 May 2020 19:25:20 +0000
(21:25 +0200)
server/utils/access.js
patch
|
blob
|
blame
|
history
diff --git
a/server/utils/access.js
b/server/utils/access.js
index
6b8eac8
..
66ff952
100644
(file)
--- 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