mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 10:06:13 +01:00
handling of form completion in registration interstitial
This commit is contained in:
@@ -194,6 +194,10 @@ Controllers.registerInterstitial = function(req, res, next) {
|
||||
userData: req.session.registration,
|
||||
interstitials: []
|
||||
}, function(err, data) {
|
||||
if (!data.interstitials.length) {
|
||||
return next();
|
||||
}
|
||||
|
||||
var renders = data.interstitials.map(function(interstitial) {
|
||||
return async.apply(req.app.render.bind(req.app), interstitial.template, interstitial.data)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user