mirror of
https://github.com/calzoneman/sync.git
synced 2024-09-13 04:32:09 +00:00
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…
x
Reference in New Issue
Block a user