mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-12 11:01:52 +00:00
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:
parent
42a07e9d74
commit
5950b2c829
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue