Skip to content

Node.js based forum software built for the modern web

additional logging and removing interstitial session data if plugins don't return interstitials

Julian Lam06a77143bd23
diff --git a/src/controllers/index.js b/src/controllers/index.js
index e6b0d3753c..3b22c7ad1f 100644
--- a/src/controllers/index.js
+++ b/src/controllers/index.js
@@ -212,7 +212,9 @@ Controllers.registerInterstitial = function (req, res, next) {
}
if (!data.interstitials.length) {
- return next();
+ // No interstitials, redirect to home
+ delete req.session.registration;
+ return res.redirect('/');
}
var renders = data.interstitials.map(function (interstitial) {
diff --git a/src/emailer.js b/src/emailer.js
index ce90839f12..4ccd35ed99 100644
--- a/src/emailer.js
+++ b/src/emailer.js
@@ -131,7 +131,7 @@ var fallbackTransport;
data.from = data.from_name + '<' + data.from + '>';
delete data.from_name;
- winston.verbose('[emailer] Sending email to uid ' + data.uid);
+ winston.verbose('[emailer] Sending email to uid ' + data.uid + ' (' + data.to + ')');
fallbackTransport.sendMail(data, function (err) {
if (err) {
winston.error(err);