High-Table-Consortium / fullstack-capstone-dockerized

0 stars 3 forks source link

Created User Schema #25

Closed PhamelaMhlaba closed 1 month ago

PhamelaMhlaba commented 1 month ago

Description:

Added a pre-save hook to hash passwords before storing them in the database for enhanced security. Included a method to compare user-entered passwords with the stored hashed password. Enabled timestamps to automatically record createdAt and updatedAt for each user document.

;