Update routes and db

This commit is contained in:
Kevin Thomas
2021-08-03 00:27:00 -07:00
parent 5170a31355
commit 8796dc137b
4 changed files with 12 additions and 10 deletions

View File

@@ -4,7 +4,7 @@ const db = require('../db')
const router = express.Router()
router.post('/', function (req, res, next) {
router.post('/users', function (req, res, next) {
const salt = crypto.randomBytes(16)
crypto.pbkdf2(req.body.password, salt, 10000, 32, 'sha256', function (err, hashedPassword) {
if (err) {