Skip to content

Commit

Permalink
disabled autoComplete for secrets (intelowlproject#2693)
Browse files Browse the repository at this point in the history
  • Loading branch information
carellamartina authored and pranjalg1331 committed Jan 25, 2025
1 parent b2b483c commit a558c6e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/src/components/plugins/forms/PluginConfigForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ function CustomInput({ formik, config, configType, disabledInputField }) {
: "bg-darker border-0"
}
disabled={disabledInputField}
autoComplete={config.is_secret ? "off" : "on"}
/>
<FormFeedback>This field must be a number.</FormFeedback>
</>
Expand All @@ -70,6 +71,7 @@ function CustomInput({ formik, config, configType, disabledInputField }) {
: "bg-darker border-0"
}
disabled={disabledInputField}
autoComplete={config.is_secret ? "off" : "on"}
/>
);
case ParameterTypes.STR:
Expand All @@ -91,6 +93,7 @@ function CustomInput({ formik, config, configType, disabledInputField }) {
: "bg-darker border-0"
}
disabled={disabledInputField}
autoComplete={config.is_secret ? "off" : "on"}
/>
);
case ParameterTypes.DICT:
Expand Down Expand Up @@ -179,6 +182,7 @@ function CustomInput({ formik, config, configType, disabledInputField }) {
}}
value={value}
disabled={disabledInputField}
autoComplete={config.is_secret ? "off" : "on"}
/>
</Col>
<Button
Expand Down

0 comments on commit a558c6e

Please # to comment.