make sure to clear flash errors after display to avoid showing again #6154

Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
si458 2024-06-11 20:46:45 +01:00
parent 42a07e9d74
commit 5950b2c829

View File

@ -3363,6 +3363,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
var flashErrors = []; var flashErrors = [];
if (req.session.flash && req.session.flash.error) { if (req.session.flash && req.session.flash.error) {
flashErrors = obj.common.uniqueArray(req.session.flash.error); flashErrors = obj.common.uniqueArray(req.session.flash.error);
req.session.flash = null;
} }
// Render the login page // Render the login page