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
|
// 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();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user