fix(theme): fix page encrypt password type error (#819)
This commit is contained in:
parent
79397faa65
commit
1dfbb872f7
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user