"Build a Simple Android App" was retired on September 15, 2017. You are now viewing the recommended replacement.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- Application Overview 4:18
- Object-Oriented Authentication
- Authentication vs Authorization 1:46
- AuthN vs AuthZ 5 questions
- Registration System 5:01
- Securing Passwords 5:01
- Login System 5:45
- Registration and Security 5 questions
- Verify Authentication 3:52
- Logging Out 4:00
- Require Authentication 4:19
- Authenticated Login 5 questions
Well done!
You have completed Introduction to User Authentication in PHP!

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
We need another function that we can use, on pages that require authentication. This requireAuth function will use our isAuthenticated function.
Requiring Authentication on Pages
Add requireAuth(); to the following files
- add.php
- procedures/addBook.php
- procedures/vote.php
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up