Skip to content

Commit c948ba4

Browse files
committed
fix(integrations): stop browser autofilling the service account API token field
1 parent da8e6ee commit c948ba4

1 file changed

Lines changed: 17 additions & 13 deletions

File tree

apps/sim/app/workspace/[workspaceId]/integrations/components/connect-service-account-modal/connect-service-account-modal.tsx

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
ChipModalField,
1111
ChipModalFooter,
1212
ChipModalHeader,
13+
SecretInput,
1314
} from '@/components/emcn'
1415
import { isApiClientError } from '@/lib/api/client/errors'
1516
import { serviceAccountJsonSchema } from '@/lib/api/contracts/credentials'
@@ -355,19 +356,22 @@ function AtlassianServiceAccountModal({
355356
Add {serviceName} service account
356357
</ChipModalHeader>
357358
<ChipModalBody>
358-
<ChipModalField
359-
type='input'
360-
inputType='password'
361-
title='API token'
362-
value={apiToken}
363-
onChange={(value) => {
364-
setApiToken(value)
365-
if (error) setError(null)
366-
}}
367-
placeholder='Paste API token'
368-
autoComplete='off'
369-
required
370-
/>
359+
<ChipModalField type='custom' title='API token' required>
360+
<SecretInput
361+
value={apiToken}
362+
onChange={(value) => {
363+
setApiToken(value)
364+
if (error) setError(null)
365+
}}
366+
placeholder='Paste API token'
367+
name='atlassian_service_account_api_token'
368+
autoComplete='new-password'
369+
autoCorrect='off'
370+
autoCapitalize='off'
371+
data-lpignore='true'
372+
data-form-type='other'
373+
/>
374+
</ChipModalField>
371375

372376
<ChipModalField
373377
type='input'

0 commit comments

Comments
 (0)