mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	added 'filter:register.build' hook to augment register template data
This commit is contained in:
		| @@ -209,7 +209,13 @@ Controllers.register = function(req, res, next) { | ||||
| 	data.minimumPasswordLength = meta.config.minimumPasswordLength; | ||||
| 	data.termsOfUse = meta.config.termsOfUse; | ||||
|  | ||||
| 	res.render('register', data); | ||||
| 	data.captcha = null; | ||||
| 	plugins.fireHook('filter:register.build', req, res, data, function(err, data) { | ||||
| 		if (err && process.env === 'development') { | ||||
| 			winston.warn(JSON.stringify(err)); | ||||
| 		} | ||||
| 		res.render('register', data); | ||||
| 	}); | ||||
| }; | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user