mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 19:55:53 +02: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