mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
additional logging and removing interstitial session data if plugins don't return interstitials
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user