One Solution3:02 with Alena Holligan
This video covers one solution to the practice session.
password_hash — Creates a new password hash using a strong one-way hashing algorithm.
password_verify — Verifies that the given hash matches the given password.
For Step 5 bonus, you could also setup the password hash to be part of the saveUser function. Either way, you need to make sure you're passing the correct information and actually hashing the password before saving it to the database.
You need to sign up for Treehouse in order to download course files.Sign up