D73 #100DaysOfCode

Day 73! Today I learned how to implement a user login page.

Yesterday I made a database and made some test users that could log in to the site, but now I needed to implement a registration page to make it easier for users.

So I started by addressing my User class and more specifically the password variable, at the moment the password is stored in plain text and if data breaches and general IT experience has taught me anything it’s “Don’t do that”.

There is a module I can load in that allows me to hash strings and then check that hash against the password.

Written on December 2, 2019