Skip to content

Node.js based forum software built for the modern web

remove unused params

barisusakli97c42de2d34f
diff --git a/src/controllers/authentication.js b/src/controllers/authentication.js
index 78d5ef938e..c9e392889e 100644
--- a/src/controllers/authentication.js
+++ b/src/controllers/authentication.js
@@ -59,9 +59,9 @@ authenticationController.register = function(req, res, next) {
},
function(data, next) {
if (registrationType === 'normal' || registrationType === 'invite-only') {
- registerAndLoginUser(req, res, userData, next);
+ registerAndLoginUser(req, userData, next);
} else if (registrationType === 'admin-approval') {
- addToApprovalQueue(req, res, userData, next);
+ addToApprovalQueue(req, userData, next);
}
}
], 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;
async.waterfall([
function(next) {
@@ -97,7 +97,7 @@ function registerAndLoginUser(req, res, userData, callback) {
], callback);
}
-function addToApprovalQueue(req, res, userData, callback) {
+function addToApprovalQueue(req, userData, callback) {
async.waterfall([
function(next) {
userData.ip = req.ip;