NodeJS Essentials 38: Flash Messages

preview_player
Показать описание
In this tutorial, you'll learn how to add custom flash messages to a PassportJS login setup.

In the previous tutorial, we setup a protected route with Passport JS and configured a new login page to accept a username and password.

The standard Passport authentication in Node js doesn't look particularly helpful so we'll first of all redirect users to the same login page and display a flash message to let the user know what went wrong. Channel Handle @codebubb
Рекомендации по теме
Комментарии
Автор

Thanks so much for this excellent tutorial. This was exactly what I needed and made it a cinch to set up flash error messages on my express app! Much appreciated.

tommonks
Автор

thanks for making this so clear! i subbed and look forward to more great videos!

yuck
Автор

just what i was lookin for thank u, is there a reason why youre not using the successRedirect option?

wheeler
Автор

Can flash be used also when sign up instead of log in?

garbjorn
join shbcf.ru