mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-05 05:25:49 +01:00
add username/email to user-delete event
This commit is contained in:
@@ -163,12 +163,14 @@ function deleteUsers(socket, uids, method, callback) {
|
||||
function (next) {
|
||||
method(uid, next);
|
||||
},
|
||||
function (next) {
|
||||
function (userData, next) {
|
||||
events.log({
|
||||
type: 'user-delete',
|
||||
uid: socket.uid,
|
||||
targetUid: uid,
|
||||
ip: socket.ip,
|
||||
username: userData.username,
|
||||
email: userData.email,
|
||||
}, next);
|
||||
},
|
||||
function (next) {
|
||||
|
||||
Reference in New Issue
Block a user