change bcrypt to bcryptjs, use my own prebuilt better-sqlite3, supports more prebuilt

This commit is contained in:
LouisLam
2021-08-31 19:56:44 +08:00
parent 8c5d1945be
commit 0d65918a6a
4 changed files with 55 additions and 314 deletions

View File

@@ -1,5 +1,5 @@
const passwordHashOld = require("password-hash");
const bcrypt = require("bcrypt");
const bcrypt = require("bcryptjs");
const saltRounds = 10;
exports.generate = function (password) {