In this task, we will add a
hashing function and store the hashed password values in the database.
- We have a nice user management interface, but if you open a SQL command window and query the user table, you will see that the password field for each user is empty.
- We need to store the password, and in order to do that, we need to make a function to hash passwords. We will implement this function in the User model and do it in a rather simplistic way, using the crypt library that comes with PHP and providing no salt value, so that it is randomly generated by the library. You can replace this function ...