Fix incorrect logging of user IP in User.login
This commit is contained in:
parent
f482a4e3b8
commit
de145d00c7
|
@ -496,7 +496,7 @@ User.prototype.login = function (name, pw) {
|
|||
if (err) {
|
||||
if (err === "Invalid username/password combination") {
|
||||
Logger.eventlog.log("[loginfail] Login failed (bad password): " + name
|
||||
+ "@" + webserver.ipForRequest(req));
|
||||
+ "@" + user.ip);
|
||||
}
|
||||
|
||||
self.socket.emit("login", {
|
||||
|
|
Loading…
Reference in a new issue