Skip to content

Node.js based forum software built for the modern web

use uid, socket.uid is always 0 here

Barış Soner Uşaklıa62a3647a0bf
diff --git a/src/socket.io/user.js b/src/socket.io/user.js
index 5f844650a6..f2af4eeccd 100644
--- a/src/socket.io/user.js
+++ b/src/socket.io/user.js
@@ -107,7 +107,7 @@ SocketUser.reset.commit = function(socket, data, callback) {
});
events.log({
type: 'password-reset',
- uid: socket.uid,
+ uid: uid,
ip: socket.ip
});
callback();