Statlog to config
This commit is contained in:
@@ -92,7 +92,14 @@ function userLogin(client, username, password, cb) {
|
|||||||
userId : user.userId,
|
userId : user.userId,
|
||||||
sessionId : user.sessionId,
|
sessionId : user.sessionId,
|
||||||
});
|
});
|
||||||
return StatLog.appendSystemLogEntry('user_login_history', historyItem, loginHistoryMax, StatLog.KeepType.Max, callback);
|
|
||||||
|
return StatLog.appendSystemLogEntry(
|
||||||
|
'user_login_history',
|
||||||
|
historyItem,
|
||||||
|
loginHistoryMax,
|
||||||
|
StatLog.KeepType.Max,
|
||||||
|
callback
|
||||||
|
);
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
err => {
|
err => {
|
||||||
|
|||||||
@@ -366,4 +366,11 @@
|
|||||||
// see the documentation for more information!
|
// see the documentation for more information!
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
|
statLog: {
|
||||||
|
systemEvents: {
|
||||||
|
// Max login history event records kept. -1 = unlimited
|
||||||
|
loginHistoryMax: -1
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user