fix(back/flash): retrieve all flashed fields
This commit is contained in:
parent
81a62be38d
commit
2e3c5d16c4
@ -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();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user