Skip to content

fix(settings): stop browser autofilling WhatsApp account fields + clearer Meta App ID hint#53

Merged
sathyaprakash000 merged 1 commit into
mainfrom
fix/whatsapp-account-meta-app-id-autofill
May 30, 2026
Merged

fix(settings): stop browser autofilling WhatsApp account fields + clearer Meta App ID hint#53
sathyaprakash000 merged 1 commit into
mainfrom
fix/whatsapp-account-meta-app-id-autofill

Conversation

@sathyaprakash000
Copy link
Copy Markdown
Contributor

Problem

The New/Edit WhatsApp account modal contains a password field (the Permanent Access Token), so browsers treat the whole modal as a login form and autofill the nearest text input — the Meta App ID field — with a saved username.

Fix

  • Mark the access-token field autoComplete="new-password" to break the browser's username-detection heuristic (root cause).
  • Add autoComplete="off" + a non-credential name to the identity fields (Phone Number ID, WABA ID, Verify Token, Meta App ID) so the autofill cannot hop to a neighbour.
  • Add inputMode="numeric" to the numeric ID fields.
  • Clarify the Meta App ID placeholder to show the expected format/length: e.g. 1191602295745986 (15–16 digits).

Scope

Single file, frontend-only: frontend/src/pages/AdminSettingsPage.jsx (6 insertions, 4 deletions). No behavioural/logic change beyond input attributes and a placeholder string.

…arer Meta App ID hint

The New/Edit WhatsApp account modal contains a password field (access
token), so browsers treated it as a login form and autofilled the
nearest text input (Meta App ID) with a saved username.

- Mark the access-token field autoComplete="new-password" to break the
  browser's username-detection heuristic.
- Add autoComplete="off" + non-credential name to the identity fields
  (phone number ID, WABA ID, verify token, Meta App ID).
- Add inputMode="numeric" to the numeric ID fields.
- Clarify the Meta App ID placeholder to show the expected format and
  length: "e.g. 1191602295745986 (15-16 digits)".

Signed-off-by: KingArthur000 <sathyaprakashelango@gmail.com>
@sathyaprakash000 sathyaprakash000 merged commit 35a6c97 into main May 30, 2026
11 checks passed
@sathyaprakash000 sathyaprakash000 deleted the fix/whatsapp-account-meta-app-id-autofill branch May 30, 2026 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant