mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-08 00:22:51 +01:00
filter:register.build now returns what it was passed, in order. fixes #1540, we seriously need to consider standarizing the hooks arguments, maybe some ideas here #1527
This commit is contained in:
@@ -207,7 +207,7 @@ Controllers.register = function(req, res, next) {
|
||||
data.minimumPasswordLength = meta.config.minimumPasswordLength;
|
||||
data.termsOfUse = meta.config.termsOfUse;
|
||||
|
||||
plugins.fireHook('filter:register.build', req, res, data, function(err, data) {
|
||||
plugins.fireHook('filter:register.build', req, res, data, function(err, req, res, data) {
|
||||
if (err && process.env === 'development') {
|
||||
winston.warn(JSON.stringify(err));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user