mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
dont let users with the same username/slug register closes #33
This commit is contained in:
@@ -147,7 +147,7 @@ var SocketIO = require('socket.io').listen(global.server, { log:false }),
|
||||
});
|
||||
|
||||
socket.on('user.exists', function(data) {
|
||||
user.exists(data.username, function(exists){
|
||||
user.exists(utils.slugify(data.username), function(exists){
|
||||
socket.emit('user.exists', {exists: exists});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user