fix(back/flash): retrieve all flashed fields

This commit is contained in:
Alice Gaudon 2022-03-05 10:03:49 +01:00
parent 81a62be38d
commit 2e3c5d16c4

View File

@ -62,13 +62,7 @@ export default class SessionComponent extends ApplicationComponent {
// Views flash function // Views flash function
res.setLazyLocal('flash', () => { res.setLazyLocal('flash', () => {
return { return req.flash();
info: req.flash('info'),
success: req.flash('success'),
warning: req.flash('warning'),
error: req.flash('error'),
'error-alert': req.flash('error-alert'),
};
}); });
next(); next();
}); });