From 5ca7450349588c763cba35170bfe7a2b433d249e Mon Sep 17 00:00:00 2001 From: DevelopmentCats Date: Thu, 22 May 2025 19:32:56 +0000 Subject: [PATCH] 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. --- registry/coder/modules/windows-rdp/devolutions-patch.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/registry/coder/modules/windows-rdp/devolutions-patch.js b/registry/coder/modules/windows-rdp/devolutions-patch.js index ef736452..2b3484d5 100644 --- a/registry/coder/modules/windows-rdp/devolutions-patch.js +++ b/registry/coder/modules/windows-rdp/devolutions-patch.js @@ -59,7 +59,7 @@ const formFieldEntries = { querySelector: "web-client-username-control input", /** @readonly */ - value: "${CODER_USERNAME}", + value: JSON.parse("${CODER_USERNAME}"), }, /** @readonly */ @@ -68,7 +68,7 @@ const formFieldEntries = { querySelector: "web-client-password-control input", /** @readonly */ - value: "${CODER_PASSWORD}", + value: JSON.parse("${CODER_PASSWORD}"), }, };