Tinkering with passport methods and the authentication strategy, it should be possible to specify more than the bare message in routes, so we can render it differently (e.g. Info or Error), as we are already doing in some of the existing routes:
req.flash('loginMessage', 'Your comment has been saved!')
req.flash('type', 2)
Tinkering with
passport
methods and the authentication strategy, it should be possible to specify more than the bare message inroutes
, so we can render it differently (e.g. Info or Error), as we are already doing in some of the existing routes: