"Build a Rails API" was retired on May 27, 2019.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Introduction to User Authentication in PHP!
You have completed Introduction to User Authentication in PHP!
You have Authenticated and Authorized a book voting application. What do you do next?
Additional Resources
Introduction to Application Security
Suggested Enhancements
- Add or Change the messaging.
- Add additional authorization checks.
- Add more information to your books, such as category, isbn or cover image.
- Allow users to leave comments on books.
- Add an additional role that only allows users to vote, and maybe add comments, but not add books.
- Change the voting system to be 5 stars instead of up/down voting.
- Allow administrators to create users.
- Share your book voting site with friends and family and allow them to give you additional feature suggestions.
Object-Oriented Approach
When implementing user authentication in an object-oriented application, the same methods would be used. The approach will be slightly different because most of the authentication will be handled through routing.
Check out the Object-Oriented version of the application, where you can see before and after Authentication has been implemented. You can also read some tips for implementing with routes.
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