mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 10:06:13 +01:00
add username/email to user-delete event
This commit is contained in:
@@ -56,7 +56,7 @@ SocketUser.deleteAccount = function (socket, data, callback) {
|
||||
}
|
||||
user.deleteAccount(socket.uid, next);
|
||||
},
|
||||
function (next) {
|
||||
function (userData, next) {
|
||||
require('./index').server.sockets.emit('event:user_status_change', { uid: socket.uid, status: 'offline' });
|
||||
|
||||
events.log({
|
||||
@@ -64,6 +64,8 @@ SocketUser.deleteAccount = function (socket, data, callback) {
|
||||
uid: socket.uid,
|
||||
targetUid: socket.uid,
|
||||
ip: socket.ip,
|
||||
username: userData.username,
|
||||
email: userData.email,
|
||||
});
|
||||
next();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user