Python for Entrepreneurs Transcripts
Chapter: User accounts and identity
Lecture: Introduction to login in and out
Login or
purchase this course
to watch this video and the rest of the course contents.
0:02
Now that we've stored users correctly and safely in our database, it's time to have them log in and log out.
0:10
We've seen this where we can go and either register for the site or we can sign into the site and our code would actually verify the sign in correctly.
0:18
However, even after we signed in, you would see that the web app doesn't really know that the user is signed in, so they come here, they click sign in,
0:27
they click on this and what we would like to have happen is once we redirect them over to their account page or wherever it is
0:34
we are going to redirect them to, we'd like to change that navigation to say here is your account, we'd like every single request be able to know
0:42
which user is signed in and basically answer two questions, is there a user signed in and what is their id or actually retrieve them
0:49
from the database automatically. So we're going to spend the next couple of videos, a demo and some concepts talking about how to make this happen
0:56
in our web app, in Pyramid. You'll see it's quite easy.