diff --git a/src/middleware/middleware.js b/src/middleware/middleware.js index 0248af04f4..d09270c3c9 100644 --- a/src/middleware/middleware.js +++ b/src/middleware/middleware.js @@ -259,7 +259,6 @@ middleware.busyCheck = function(req, res, next) { middleware.applyBlacklist = function(req, res, next) { meta.blacklist.test(req.ip, function(err) { - console.log('blacklist returned:', err); next(err); }); }; diff --git a/src/user/create.js b/src/user/create.js index 1d1543e863..ae69f1ad5d 100644 --- a/src/user/create.js +++ b/src/user/create.js @@ -1,14 +1,13 @@ 'use strict'; -var async = require('async'), - db = require('../database'), - utils = require('../../public/src/utils'), - validator = require('validator'), - plugins = require('../plugins'), - groups = require('../groups'), - meta = require('../meta'), - notifications = require('../notifications'), - translator = require('../../public/src/modules/translator'); +var async = require('async'); +var db = require('../database'); +var utils = require('../../public/src/utils'); +var validator = require('validator'); +var plugins = require('../plugins'); +var groups = require('../groups'); +var meta = require('../meta'); + module.exports = function(User) { @@ -90,7 +89,11 @@ module.exports = function(User) { db.sortedSetAdd('userslug:uid', userData.uid, userData.userslug, next); }, function(next) { - db.sortedSetsAdd(['users:joindate', 'users:online', 'users:notvalidated'], timestamp, userData.uid, next); + var sets = ['users:joindate', 'users:online']; + if (parseInt(userData.uid) !== 1) { + sets.push('users:notvalidated'); + } + db.sortedSetsAdd(sets, timestamp, userData.uid, next); }, function(next) { db.sortedSetsAdd(['users:postcount', 'users:reputation'], 0, userData.uid, next); @@ -176,7 +179,7 @@ module.exports = function(User) { next(); } } - }, function(err, results) { + }, function(err) { callback(err); }); };