diff --git a/ProjectSourceCode/.gitignore b/ProjectSourceCode/.gitignore index e69de29..b512c09 100644 --- a/ProjectSourceCode/.gitignore +++ b/ProjectSourceCode/.gitignore @@ -0,0 +1 @@ +node_modules \ No newline at end of file diff --git a/ProjectSourceCode/package-lock.json b/ProjectSourceCode/package-lock.json new file mode 100644 index 0000000..fc05993 --- /dev/null +++ b/ProjectSourceCode/package-lock.json @@ -0,0 +1,17 @@ +{ + "name": "ProjectSourceCode", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "dependencies": { + "bcryptjs": "^2.4.3" + } + }, + "node_modules/bcryptjs": { + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/bcryptjs/-/bcryptjs-2.4.3.tgz", + "integrity": "sha512-V/Hy/X9Vt7f3BbPJEi8BdVFMByHi+jNXrYkW3huaybV/kQ0KJg0Y6PkEMbn+zeT+i+SiKZ/HMqJGIIt4LZDqNQ==" + } + } +} diff --git a/ProjectSourceCode/package.json b/ProjectSourceCode/package.json new file mode 100644 index 0000000..504b1f6 --- /dev/null +++ b/ProjectSourceCode/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "bcryptjs": "^2.4.3" + } +} diff --git a/ProjectSourceCode/src/index.js b/ProjectSourceCode/src/index.js index 1be8699..8194622 100644 --- a/ProjectSourceCode/src/index.js +++ b/ProjectSourceCode/src/index.js @@ -10,7 +10,7 @@ const path = require('path'); const pgp = require('pg-promise')(); // To connect to the Postgres DB from the node server const bodyParser = require('body-parser'); const session = require('express-session'); // To set the session object. To store or access session data, use the `req.session`, which is (generally) serialized as JSON by the store. -const bcrypt = require('bcrypt'); // To hash passwords +const bcrypt = require('bcryptjs'); // To hash passwords const axios = require('axios'); // To make HTTP requests from our server. We'll learn more about it in Part C. // *****************************************************