Only record login-success for rank >= 255
This commit is contained in:
parent
49f7fb2e15
commit
27b95fd856
1
api.js
1
api.js
|
|
@ -189,6 +189,7 @@ module.exports = function (Server) {
|
||||||
|
|
||||||
var row = Auth.login(name, pw, session);
|
var row = Auth.login(name, pw, session);
|
||||||
if(row) {
|
if(row) {
|
||||||
|
if(row.global_rank >= 255)
|
||||||
ActionLog.record(getIP(req), name, "login-success");
|
ActionLog.record(getIP(req), name, "login-success");
|
||||||
this.sendJSON(res, {
|
this.sendJSON(res, {
|
||||||
success: true,
|
success: true,
|
||||||
|
|
|
||||||
1
user.js
1
user.js
|
|
@ -626,6 +626,7 @@ User.prototype.login = function(name, pw, session) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(this.global_rank >= 255)
|
||||||
ActionLog.record(this.ip, name, "login-success");
|
ActionLog.record(this.ip, name, "login-success");
|
||||||
this.loggedIn = true;
|
this.loggedIn = true;
|
||||||
this.socket.emit("login", {
|
this.socket.emit("login", {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue