mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 16:00:26 +01:00
remove unused params
This commit is contained in:
@@ -59,9 +59,9 @@ authenticationController.register = function(req, res, next) {
|
|||||||
},
|
},
|
||||||
function(data, next) {
|
function(data, next) {
|
||||||
if (registrationType === 'normal' || registrationType === 'invite-only') {
|
if (registrationType === 'normal' || registrationType === 'invite-only') {
|
||||||
registerAndLoginUser(req, res, userData, next);
|
registerAndLoginUser(req, userData, next);
|
||||||
} else if (registrationType === 'admin-approval') {
|
} else if (registrationType === 'admin-approval') {
|
||||||
addToApprovalQueue(req, res, userData, next);
|
addToApprovalQueue(req, userData, next);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
], function(err, data) {
|
], function(err, data) {
|
||||||
@@ -77,7 +77,7 @@ authenticationController.register = function(req, res, next) {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
function registerAndLoginUser(req, res, userData, callback) {
|
function registerAndLoginUser(req, userData, callback) {
|
||||||
var uid;
|
var uid;
|
||||||
async.waterfall([
|
async.waterfall([
|
||||||
function(next) {
|
function(next) {
|
||||||
@@ -97,7 +97,7 @@ function registerAndLoginUser(req, res, userData, callback) {
|
|||||||
], callback);
|
], callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
function addToApprovalQueue(req, res, userData, callback) {
|
function addToApprovalQueue(req, userData, callback) {
|
||||||
async.waterfall([
|
async.waterfall([
|
||||||
function(next) {
|
function(next) {
|
||||||
userData.ip = req.ip;
|
userData.ip = req.ip;
|
||||||
|
|||||||
Reference in New Issue
Block a user