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:
rainbow napkin 2024-12-23 15:17:07 -05:00
parent 6b0a73e1c8
commit 6e785dc211
6 changed files with 112 additions and 12 deletions

View file

@ -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;