Modify bcrypt to bcryptjs and modifications to .gitignore so node_modules aren't stored
This commit is contained in:
1
ProjectSourceCode/.gitignore
vendored
1
ProjectSourceCode/.gitignore
vendored
@@ -0,0 +1 @@
|
|||||||
|
node_modules
|
||||||
17
ProjectSourceCode/package-lock.json
generated
Normal file
17
ProjectSourceCode/package-lock.json
generated
Normal file
@@ -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=="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
5
ProjectSourceCode/package.json
Normal file
5
ProjectSourceCode/package.json
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"dependencies": {
|
||||||
|
"bcryptjs": "^2.4.3"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -10,7 +10,7 @@ const path = require('path');
|
|||||||
const pgp = require('pg-promise')(); // To connect to the Postgres DB from the node server
|
const pgp = require('pg-promise')(); // To connect to the Postgres DB from the node server
|
||||||
const bodyParser = require('body-parser');
|
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 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.
|
const axios = require('axios'); // To make HTTP requests from our server. We'll learn more about it in Part C.
|
||||||
|
|
||||||
// *****************************************************
|
// *****************************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user