fix(theme): fix page encrypt password type error (#819)

This commit is contained in:
pengzhanbo 2026-01-19 21:39:50 +08:00 committed by GitHub
parent 79397faa65
commit 1dfbb872f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,7 +5,7 @@ export async function genEncrypt(password: string): Promise<string> {
const salt = new Uint8Array(16)
crypto.getRandomValues(salt)
return await bcrypt({
password,
password: String(password),
salt,
costFactor: 11,
outputType: 'encoded',