From 1dfbb872f7d3eb79ae907497690e18e4414cc5ea Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Mon, 19 Jan 2026 21:39:50 +0800 Subject: [PATCH] fix(theme): fix page encrypt password type error (#819) --- theme/src/node/utils/encrypt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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',