New live stat: Total new users today

* Add NT (Obv/2 throwback) MCI for new users today
* Keep live stat up to date in stat log
* Exposed via WFC
This commit is contained in:
Bryan Ashby
2022-05-07 10:48:40 -06:00
parent bb86f386e9
commit 9e5b3369a5
13 changed files with 49 additions and 22 deletions

View File

@@ -86,7 +86,7 @@ function userLogin(client, username, password, options, cb) {
username : user.username,
userId : user.userId
},
'Already logged in'
`User ${user.username} already logged in`
);
return cb(Errors.BadLogin(
@@ -104,7 +104,7 @@ function userLogin(client, username, password, options, cb) {
}
);
client.log.info('Successful login');
client.log.info(`User ${user.username} successfully logged in`);
// User's unique session identifier is the same as the connection itself
user.sessionId = client.session.uniqueId; // convenience