Skip to content

Commit

Permalink
make sure to clear flash errors after display to avoid showing again Y…
Browse files Browse the repository at this point in the history
…lianst#6154

Signed-off-by: si458 <simonsmith5521@gmail.com>
  • Loading branch information
si458 committed Jun 11, 2024
1 parent 42a07e9 commit 5950b2c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5950b2c

Please sign in to comment.