Add and implement config package

This commit is contained in:
Kevin Thomas
2021-07-29 23:21:46 -07:00
parent 45279d061a
commit 91622582b0
6 changed files with 16015 additions and 52 deletions

View File

@@ -5,7 +5,6 @@ const db = require('../db')
const router = express.Router()
router.post('/', function (req, res, next) {
console.log('REQ: ', req.body)
const salt = crypto.randomBytes(16)
crypto.pbkdf2(req.body.password, salt, 10000, 32, 'sha256', function (err, hashedPassword) {
if (err) { return next(err) }