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
1 changed files with 1 additions and 7 deletions

View File

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