mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-25 22:55:52 -05: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
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user