hard coded salt to bcrypt gensalt

This commit is contained in:
kehiy 2023-05-15 02:02:54 -07:00
parent 8d24891b8e
commit 1125752511

View file

@ -1,6 +1,8 @@
const passwordHashOld = require("password-hash"); const passwordHashOld = require("password-hash");
const bcrypt = require("bcryptjs"); const bcrypt = require("bcryptjs");
const saltRounds = 10;
const saltRounds = bcrypt.genSalt();
/** /**
* Hash a password * Hash a password