Files
urbanLifeline/dify/web/app/components/plugins/plugin-auth/utils.ts

11 lines
348 B
TypeScript
Raw Normal View History

2025-12-01 17:21:38 +08:00
export const transformFormSchemasSecretInput = (isPristineSecretInputNames: string[], values: Record<string, any>) => {
const transformedValues: Record<string, any> = { ...values }
isPristineSecretInputNames.forEach((name) => {
if (transformedValues[name])
transformedValues[name] = '[__HIDDEN__]'
})
return transformedValues
}