aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
authorMark Powers <markppowers0@gmail.com>2019-09-19 17:42:35 -0500
committerMark Powers <markppowers0@gmail.com>2019-09-19 17:42:35 -0500
commit14132783ed47bc077b6594c3a4d8f8b970919d3d (patch)
tree5d593b2c5fbf4a5289e2cc4810fe9375799cc5b4 /src/index.js
parent0dcae858838d2a4bdd2324b31e6f771de6d68294 (diff)
Add salt to password hashing
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js
index 1214038..c6a5a18 100644
--- a/src/index.js
+++ b/src/index.js
@@ -68,6 +68,10 @@ function setUpModels(){
password: {
type: Sequelize.STRING,
allowNull: false,
+ },
+ salt: {
+ type: Sequelize.STRING,
+ allowNull: false,
},}),
"requests": database.define('requests', {
session: Sequelize.STRING,