Closed hiyaryan closed 11 months ago
Commit history includes two similar encryption techniques from two different node packages. One from the bcrypt package and one from the passport package (collection of passport packages). Passport is the choice of encryption as it will be convenient to extend it with other available login options such as using google or facebook and it uses bcrypt under the hood.
Since passport-local-mongoose adds a password and email (changed from default 'username') field automatically, the schema had to be updated to remove those fields and the seed data had to be updated as well to take that into consideration.
Add hashing to the users passwords.