Skip to content

Commit ddbf8bd

Browse files
fix: mask webhook secret with password field and reveal toggle (#6932)
1 parent 51fc019 commit ddbf8bd

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

frontend/web/components/base/forms/Input.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ const Input = class extends React.Component {
176176
}}
177177
>
178178
<Icon
179-
name={this.state.type === 'text' ? 'eye' : 'eye-off'}
179+
name={this.state.type === 'password' ? 'eye' : 'eye-off'}
180180
fill={invalid && '#ef4d56'}
181181
width={
182182
size &&

frontend/web/components/modals/CreateAuditLogWebhook.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ const CreateAuditLogWebhook: React.FC<Props> = ({
120120
setSecret(Utils.safeParseEventValue(e))
121121
}
122122
isValid={!!url && url.length > 0}
123-
type='text'
123+
type='password'
124124
className='full-width'
125125
placeholder='Secret'
126126
/>

frontend/web/components/modals/CreateWebhook.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ const CreateWebhook: FC<CreateWebhookProps> = ({
117117
onChange={(e: ChangeEvent<HTMLInputElement>) =>
118118
setSecret(Utils.safeParseEventValue(e))
119119
}
120-
type='text'
120+
type='password'
121121
className='full-width'
122122
placeholder='Secret'
123123
/>

0 commit comments

Comments
 (0)