Updated session/socket.io conn to handle rank.
This commit is contained in:
parent
a87d498756
commit
be09c2457e
3 changed files with 5 additions and 2 deletions
|
|
@ -32,7 +32,8 @@ module.exports.authenticateSession = async function(user, pass, req){
|
|||
req.session.authip = req.ip;
|
||||
req.session.user = {
|
||||
user: userDB.user,
|
||||
id: userDB.id
|
||||
id: userDB.id,
|
||||
rank: userDB.rank
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue