handling of form completion in registration interstitial

This commit is contained in:
Julian Lam
2016-06-22 14:40:34 -04:00
parent d2926f4fe7
commit 041670bfe9
2 changed files with 33 additions and 2 deletions

View File

@@ -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)
});