fix(windows-rdp): parse username and password values in patch file

- Updated the `value` fields for `CODER_USERNAME` and `CODER_PASSWORD` to use `JSON.parse` for proper handling of JSON strings.
This commit is contained in:
DevelopmentCats 2025-05-22 19:32:56 +00:00
parent 02b5ae42f1
commit 5ca7450349

View File

@ -59,7 +59,7 @@ const formFieldEntries = {
querySelector: "web-client-username-control input", querySelector: "web-client-username-control input",
/** @readonly */ /** @readonly */
value: "${CODER_USERNAME}", value: JSON.parse("${CODER_USERNAME}"),
}, },
/** @readonly */ /** @readonly */
@ -68,7 +68,7 @@ const formFieldEntries = {
querySelector: "web-client-password-control input", querySelector: "web-client-password-control input",
/** @readonly */ /** @readonly */
value: "${CODER_PASSWORD}", value: JSON.parse("${CODER_PASSWORD}"),
}, },
}; };