Login System5:45 with Alena Holligan
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
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.
You need to sign up for Treehouse in order to download course files.Sign up