mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	feat: allow file uploading on registration interstitial
This commit is contained in:
		| @@ -152,6 +152,7 @@ authenticationController.registerComplete = function (req, res, next) { | ||||
|  | ||||
| 		var callbacks = data.interstitials.reduce(function (memo, cur) { | ||||
| 			if (cur.hasOwnProperty('callback') && typeof cur.callback === 'function') { | ||||
| 				req.body.files = req.files; | ||||
| 				memo.push(function (next) { | ||||
| 					cur.callback(req.session.registration, req.body, function (err) { | ||||
| 						// Pass error as second argument so all callbacks are executed | ||||
|   | ||||
		Reference in New Issue
	
	Block a user