Challenge: Retrieving a User at Login
Explore how to refactor a Flask login route to securely retrieve user credentials from a persistent SQLite database. Learn to perform database queries with modern SQLAlchemy functions, validate hashed passwords safely, and manage user sessions by storing only integer primary keys in cookies. This lesson helps you build a more secure authentication flow, replacing static in-memory checks with scalable, database-driven logic.
We'll cover the following...
We'll cover the following...
Up until ...