Skip to content

Commit 97049f4

Browse files
authored
ui(server): hide sensitive information in copy-on-click notifications (pterodactyl#4761)
2 parents 5cd2697 + 2d4071c commit 97049f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/scripts/components/server/databases/DatabaseRow.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,14 @@ export default ({ database, className }: Props) => {
119119
<Can action={'database.view_password'}>
120120
<div css={tw`mt-6`}>
121121
<Label>Password</Label>
122-
<CopyOnClick text={database.password}>
122+
<CopyOnClick text={database.password} showInNotification={false}>
123123
<Input type={'text'} readOnly value={database.password} />
124124
</CopyOnClick>
125125
</div>
126126
</Can>
127127
<div css={tw`mt-6`}>
128128
<Label>JDBC Connection String</Label>
129-
<CopyOnClick text={jdbcConnectionString}>
129+
<CopyOnClick text={jdbcConnectionString} showInNotification={false}>
130130
<Input type={'text'} readOnly value={jdbcConnectionString} />
131131
</CopyOnClick>
132132
</div>

0 commit comments

Comments
 (0)