mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-22 22:17:31 +03: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 = [];
|
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 New Issue
Block a user