This course will be retired on June 1, 2025.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
What good is a registration system without a way for the user to log in. We will verify user credentials and save information to the user session.
Check out this course if you want to know more about Dependency Management with Composer
Additional Practice
Practice Hashing Passwords in PHP
Documentation
password_verify() - Verifies that the given hash matches the given password.
Returns TRUE if the password and hash match, or FALSE otherwise.
Note that password_hash() returns the algorithm, cost and salt as part of the returned hash. Therefore, all information that's needed to verify the hash is included in it. This allows the verify function to verify the hash without needing separate storage for the salt or algorithm information.
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