Closed Laukess closed 7 years ago
Which chapter is that in? @Laukess
I'm on my laptop at the moment, but i think it's chapter 7.
Updated in v 2.0 of the courses. Coming week of 12/19/2016. https://github.com/realpython/about/blob/master/changelog.csv
on page 96-97 you write the route for '/'.
you make a variable called 'error' and set it to None. you check the credentials and if they aren't correct you change the error variable to a string "Invalid Credentials. Please try again."
If I'm not mistaken, you never actually use or flash the error variable.
later on in the route for logout, you write flash('You were logged out') [not sure if this is relevant but thought i would add it anyway.]