mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-07-16 14:31:00 +02:00
fix: convert password to string instead of stringify by JSON
This commit is contained in:
parent
d595a9e6b7
commit
10063e1247
@ -245,7 +245,7 @@ export async function renderPage(
|
|||||||
if (cfg.passProtected?.enabled && componentData.fileData.frontmatter?.password) {
|
if (cfg.passProtected?.enabled && componentData.fileData.frontmatter?.password) {
|
||||||
componentData.encryptedContent = await getEncryptedPayload(
|
componentData.encryptedContent = await getEncryptedPayload(
|
||||||
render(content),
|
render(content),
|
||||||
JSON.stringify(componentData.fileData.frontmatter.password),
|
componentData.fileData.frontmatter.password.toString(),
|
||||||
cfg.passProtected?.iteration,
|
cfg.passProtected?.iteration,
|
||||||
)
|
)
|
||||||
content = <Encrypted {...componentData} />
|
content = <Encrypted {...componentData} />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user