In this section, you attempt to log in as one of the users you added to the auth_users table. Your results will vary, depending on the usernames and passwords you're using. To get to the login form, open your web browser and type http://127.0.0.1/show_login.html.
I first tried to break the authentication routine by entering a bad username and a bad password.
After I clicked on the Login button, I was directed back to the login page, because both the username and password were invalid.
| Note |
Any combination of bad username and bad password will cause the authentication to fail. |
Then I entered correct values in the Username and Password fields, and after I clicked on the Login button, I saw the success message shown in the following figure.
In the next chapter, you'll be introduced to cookies, and you'll see how to use them in an authentication scheme or just for general user tracking.