Skip to content

Commit

Permalink
fix: turn off autocomplete on the private key input (#1182)
Browse files Browse the repository at this point in the history
- Disable `autoComplete` for the Private Key field (security reason).
- Make it `password` type as well.
  • Loading branch information
helciofranco authored Mar 25, 2024
1 parent b042ad7 commit ddb2440
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/twenty-cups-sparkle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"fuels-wallet": patch
---

fix: disable autocomplete from the private key input.
4 changes: 0 additions & 4 deletions .github/workflows/update-sdk-cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
# workaround to ensure force pushes to changeset branch use REPO_TOKEN owner's account
# see https://github.com/changesets/action/issues/70
persist-credentials: false
- uses: FuelLabs/github-actions/setups/node@master

- name: Checking updates
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/update-sdk-manual.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
# workaround to ensure force pushes to changeset branch use REPO_TOKEN owner's account
# see https://github.com/changesets/action/issues/70
persist-credentials: false
- uses: FuelLabs/github-actions/setups/node@master

- name: Checking updates
Expand Down
2 changes: 1 addition & 1 deletion .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"**/*.(js|jsx|ts|tsx|md|json|mdx|html|css)": [
"**/*.(js|jsx|ts|tsx|json|mdx|html|css)": [
"biome check --apply-unsafe --diagnostic-level=error --max-diagnostics=1000"
],
".{ts,tsx}": ["tsc --noEmit"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ export const ImportAccountForm = ({
<Input isDisabled={isLoading}>
<Input.Field
{...field}
autoComplete="off"
type="password"
aria-label="Private Key"
placeholder="Enter the private key to import from"
/>
Expand Down

0 comments on commit ddb2440

Please sign in to comment.