mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
RUN npm install AFTER PULLING THIS COMMIT!
Added user label to header, gravatar support
This commit is contained in:
@@ -48,6 +48,10 @@ var SocketIO = require('socket.io').listen(global.server),
|
||||
|
||||
// BEGIN: API calls (todo: organize)
|
||||
// julian: :^)
|
||||
socket.on('api:user.get', function(data) {
|
||||
modules.user.get(uid, data.fields);
|
||||
});
|
||||
|
||||
socket.on('user.create', function(data) {
|
||||
modules.user.create(data.username, data.password, data.email);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user