Show "--secret-value--"

This commit is contained in:
Adria Navarro 2025-03-18 09:51:00 +01:00
parent 38e96f2404
commit b7af496ff1
1 changed files with 4 additions and 1 deletions

View File

@ -11,6 +11,7 @@
ModalContent,
notifications,
} from "@budibase/bbui"
import { PASSWORD_REPLACEMENT } from "@budibase/types"
import type { ZodType } from "zod"
import { z } from "zod"
@ -79,6 +80,8 @@
}
$: hasBeenSubmitted && validateConfig(data)
$: isProtectedPassword = config?.clientSecret === PASSWORD_REPLACEMENT
</script>
<ModalContent onConfirm={saveOAuth2Config} size="M">
@ -114,7 +117,7 @@
error={errors.clientId}
/>
<Input
type="password"
type={!isProtectedPassword ? "password" : "text"}
label="Client secret*"
placeholder="Type here..."
bind:value={data.clientSecret}