mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 12:16:54 +02:00
closes #2519
This commit is contained in:
@@ -78,6 +78,13 @@ var fs = require('fs'),
|
||||
events.logWithUser(uid, 'restored topic (tid ' + tid + ')');
|
||||
};
|
||||
|
||||
events.logAccountLock = function(uid, until) {
|
||||
var date = new Date();
|
||||
date.setTime(date.getTime() + until);
|
||||
|
||||
events.logWithUser(uid, 'locked out until ' + date.toString());
|
||||
};
|
||||
|
||||
events.logWithUser = function(uid, string) {
|
||||
user.getUserField(uid, 'username', function(err, username) {
|
||||
if(err) {
|
||||
|
||||
Reference in New Issue
Block a user