Refactor password reset
The expiration_date
column in the password_resets
table was changed from DATE
to TIMESTAMP
data type in the init-db.sql
script. This change was made to store the exact date and time of the password reset token's expiration.
Removes the associated password reset entry from the database when the token is expired or when the reset is successful
Add password reset functionality with a code instead of a token