mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-23 05:52:57 +00:00
log ip address of user when logging in
This commit is contained in:
parent
65c1a62cb7
commit
f130470971
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ module.exports = AuthenticationController =
|
|||
UserHandler.setupLoginData(user, ()->)
|
||||
LoginRateLimiter.recordSuccessfulLogin(email)
|
||||
AuthenticationController._recordSuccessfulLogin(user._id)
|
||||
Analytics.recordEvent(user._id, "user-logged-in")
|
||||
Analytics.recordEvent(user._id, "user-logged-in", {ip:req.ip})
|
||||
logger.log email: email, user_id: user._id.toString(), "successful log in"
|
||||
req.session.justLoggedIn = true
|
||||
# capture the request ip for use when creating the session
|
||||
|
|
Loading…
Reference in a new issue