From 5950b2c8297b2a9613592634a8d08c42ec8b4591 Mon Sep 17 00:00:00 2001 From: si458 Date: Tue, 11 Jun 2024 20:46:45 +0100 Subject: [PATCH] make sure to clear flash errors after display to avoid showing again #6154 Signed-off-by: si458 --- webserver.js | 1 + 1 file changed, 1 insertion(+) diff --git a/webserver.js b/webserver.js index 1b2a18837c..309c6baea6 100644 --- a/webserver.js +++ b/webserver.js @@ -3363,6 +3363,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF var flashErrors = []; if (req.session.flash && req.session.flash.error) { flashErrors = obj.common.uniqueArray(req.session.flash.error); + req.session.flash = null; } // Render the login page