mirror of https://github.com/calzoneman/sync.git
Only record login-success for rank >= 255
This commit is contained in:
parent
49f7fb2e15
commit
27b95fd856
3
api.js
3
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
|
||||
|
|
Loading…
Reference in New Issue