At the moment, all the users' password's are stored in our database as plaintext:

1. Delete the previous unhashed entry in the database.


Let's secure their password by hashing it before we store it.

To do this, we'll use the Werkzeug helper function generate_password_hash()

2. Use the documentation here and see if you can figure out how to hash and salt the user's password:

https://werkzeug.palletsprojects.com/en/3.0.x/utils/#module-werkzeug.security

Aim to hash the password using pbkdf2:sha256

And add a salt_length of 8.

This is what you should end up with:

SOLUTION