Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.


Password Confirmation and Hashing

The User model validation is almost complete. In this step, we'll write the validation for the user password confirmation. This will be a required attribute (or field) that checks if its value matches the password field's value.

If the values match, we'll protect the password by hashing it with the bcrypt library before creating the database's new user record. If the values do not match, w...