Skip to content

Node.js based forum software built for the modern web

nothing

Baris Usakliefb5cfe1ac3e
diff --git a/src/user.js b/src/user.js
index b19462f15b..10e3bdc415 100644
--- a/src/user.js
+++ b/src/user.js
@@ -221,13 +221,13 @@ var utils = require('./../public/src/utils.js'),
RDB.lpush('userlist', username);
io.sockets.emit('user.latest', {userslug: userslug, username: username});
- callback(null, uid);
-
if (password) {
User.hashPassword(password, function(hash) {
- RDB.hset('user:'+uid, 'password', hash);
+ User.setUserField(uid, 'password', hash);
});
}
+
+ callback(null, uid);
});
});
};