Closed jrans closed 5 years ago
@@ master #65 diff @@
===================================
Files 10 10
Lines 180 198 +18
Methods 39 42 +3
Messages 0 0
Branches 26 28 +2
===================================
+ Hits 180 198 +18
Misses 0 0
Partials 0 0
Powered by Codecov. Last update 593dcec...6348c5c
THIS PR
Assumes password field exists when inserting new user data. Hashes the password field entry with bcrypt. #52
I feel #58 is a much better approach as this way to hardcoded for my liking and going against the flow of things but this is the MVP solution
Integration branch #64 has used the old solution.
Note the hashing on inserts has meant that promises aren't returned from db.insert so the cb method must be used here unless we want to promisify bcrypt.