mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05: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, ()->)
|
UserHandler.setupLoginData(user, ()->)
|
||||||
LoginRateLimiter.recordSuccessfulLogin(email)
|
LoginRateLimiter.recordSuccessfulLogin(email)
|
||||||
AuthenticationController._recordSuccessfulLogin(user._id)
|
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"
|
logger.log email: email, user_id: user._id.toString(), "successful log in"
|
||||||
req.session.justLoggedIn = true
|
req.session.justLoggedIn = true
|
||||||
# capture the request ip for use when creating the session
|
# capture the request ip for use when creating the session
|
||||||
|
|
Loading…
Reference in a new issue