Database now stores hashes of recently used IP's for all users. They are retained for seven days AFTER their LAST use.
This commit is contained in:
parent
6b0a73e1c8
commit
6e785dc211
6 changed files with 112 additions and 12 deletions
|
|
@ -48,9 +48,8 @@ module.exports.authenticateSession = async function(user, pass, req){
|
|||
rank: userDB.rank
|
||||
}
|
||||
|
||||
|
||||
//userDB.activeSessions.push(sessionData);
|
||||
await userDB.save();
|
||||
//Tattoo hashed IP address to user account for seven days
|
||||
userDB.tattooIPRecord(req.ip);
|
||||
|
||||
//return user
|
||||
return userDB.user;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue