Use an option argument so that a user’s password does not have to be updated whenever a change is made to other parts of the user data.
- [Instructor] We've almost completed our discussion…of user authentication.…We've been able to store encrypted passwords in a database,…have users log in, and check to see if a password matches,…we're able to protect pages, make sure users are logged in,…and we're able to log out.…So what topic is there left?…Well, there's minor detail in the fact…that we don't always want to update the password…in the database,…and I want us to address that in this movie.…Let me demonstrate to explain.…Here I am, logged in to the staff area.…
I'm going to click on Admins.…We want to create a new admin.…We know that we always want to provide a password…when we're creating that admin,…and it is required, our validations require it,…or it won't let us create this admin.…However, when we go to edit a user,…you'll notice that we don't see their password here,…their password is left blank.…It's encrypted in the database so there's no way we could…display the password to them here.…But what if we wanted to make a change to this record?…
- Creating a content management system
- Building dynamic content navigation
- Using context and function options for conditional behavior
- Hiding content from the public view
- Insecure direct object reference
- Allowing HTML in dynamic content
- Previewing content in the public context
- Working with cookies and sessions
- Storing status messages in the session
- Secure user authentication (login/logout)
- Regulating page access
- Nesting related resources
- Managing an ordered list automatically
Skill Level Beginner
1. Create a Content Management System
2. Build Dynamic Content Navigation
3. Use Context and Options
4. Cookies and Sessions
5. Regulate Page Access
6. Nesting Related Resources
Next steps1m 15s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.