Open G9A2HvK9 opened 2 years ago
Hashing function in user model file
DB entry with successfully hashed password
Used this article to code the encryption: https://coderrocketfuel.com/article/store-passwords-in-mongodb-with-node-js-mongoose-and-bcrypt#store-a-hashed-password-in-the-database
This article was also useful to get more information on how to approach the problem: https://www.mongodb.com/blog/post/password-authentication-with-mongoose-part-1
Hash passwords when pushing to DB