From fca141d463888ddfb4bfb89a4debbb04e3123088 Mon Sep 17 00:00:00 2001 From: dpinkevych Date: Wed, 21 Oct 2026 15:02:36 +0300 Subject: [PATCH] fix(iot-hub): prevent browser autofill of TB credentials in device install form The SHOW_FORM step renders a text input right before an and no input set autocomplete, so browsers and password managers took it for a ThingsBoard login form on the same origin. Saved TB credentials were filled into fields such as WiFi SSID / WiFi Password and ended up in the generated firmware sketch (PROD-9020). - PASSWORD input: autocomplete="new-password". With no current-password field in the form, Chrome's password manager no longer fills it on load. - Text and number inputs: autocomplete="off". - All inputs: data-lpignore="true", data-1p-ignore, data-bwignore. These are vendor-specific opt-outs for the LastPass, 1Password and Bitwarden extensions, which do their own field detection and ignore the standard autocomplete hint. They are set on the text inputs as well, so an extension cannot put the saved email into the field in front of the password (e.g. SSID). Do not remove them as noise. --- .../install-form-renderer.component.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/install-form-renderer/install-form-renderer.component.html b/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/install-form-renderer/install-form-renderer.component.html index 6bbc3f9c92..3e84d0b747 100644 --- a/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/install-form-renderer/install-form-renderer.component.html +++ b/ui-ngx/src/app/modules/home/components/iot-hub/device-install-dialog/install-form-renderer/install-form-renderer.component.html @@ -33,7 +33,8 @@ {{ field.label }} + [formControlName]="field.key" + autocomplete="new-password" data-lpignore="true" data-1p-ignore data-bwignore>