diff --git a/api.js b/api.js index 26a10867..3f9dfc25 100644 --- a/api.js +++ b/api.js @@ -189,7 +189,8 @@ module.exports = function (Server) { var row = Auth.login(name, pw, session); if(row) { - ActionLog.record(getIP(req), name, "login-success"); + if(row.global_rank >= 255) + ActionLog.record(getIP(req), name, "login-success"); this.sendJSON(res, { success: true, session: row.session_hash diff --git a/user.js b/user.js index 80d76f1c..d5637b67 100644 --- a/user.js +++ b/user.js @@ -626,7 +626,8 @@ User.prototype.login = function(name, pw, session) { } } } - ActionLog.record(this.ip, name, "login-success"); + if(this.global_rank >= 255) + ActionLog.record(this.ip, name, "login-success"); this.loggedIn = true; this.socket.emit("login", { success: true,