diff --git a/theme/src/node/utils/encrypt.ts b/theme/src/node/utils/encrypt.ts index 6ee909e4..3412cb25 100644 --- a/theme/src/node/utils/encrypt.ts +++ b/theme/src/node/utils/encrypt.ts @@ -5,7 +5,7 @@ export async function genEncrypt(password: string): Promise { const salt = new Uint8Array(16) crypto.getRandomValues(salt) return await bcrypt({ - password, + password: String(password), salt, costFactor: 11, outputType: 'encoded',