Fix incorrect logging of user IP in User.login

This commit is contained in:
calzoneman 2014-03-27 10:14:26 -05:00
parent f482a4e3b8
commit de145d00c7

View file

@ -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", {