mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 00:15:46 +01:00
removed io from user.js, figure out why notifications are breaking when websockets.js is required from it
This commit is contained in:
@@ -178,11 +178,13 @@
|
||||
|
||||
app.post('/register', function(req, res) {
|
||||
user.create(req.body.username, req.body.password, req.body.email, function(err, uid) {
|
||||
|
||||
if (err === null && uid) {
|
||||
req.login({
|
||||
uid: uid
|
||||
}, function() {
|
||||
|
||||
require('./../websockets').emitUserCount();
|
||||
|
||||
if(req.body.referrer)
|
||||
res.redirect(req.body.referrer);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user