From 590856314d33891332399ffa322d96c5e62a41b9 Mon Sep 17 00:00:00 2001 From: Taoufiq Ait Ali Date: Tue, 3 Jun 2025 11:28:35 +0100 Subject: [PATCH] disable autocompletion on login form The form in authentication-popup.html uses autocompletion, which allows some browsers to retain sensitive information in their history.Autocompletion of forms allows some browsers to retain sensitive information in their history. --- .../view/frontend/web/template/authentication-popup.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/code/Magento/Customer/view/frontend/web/template/authentication-popup.html b/app/code/Magento/Customer/view/frontend/web/template/authentication-popup.html index ca4f8b4f03b13..f57891473b058 100644 --- a/app/code/Magento/Customer/view/frontend/web/template/authentication-popup.html +++ b/app/code/Magento/Customer/view/frontend/web/template/authentication-popup.html @@ -61,7 +61,7 @@ type="email" class="input-text" data-mage-init='{"mage/trim-input":{}}' - data-bind="attr: {autocomplete: autocomplete}" + autocomplete="off" data-validate="{required:true, 'validate-email':true}"> @@ -72,7 +72,7 @@ type="password" class="input-text" id="pass" - data-bind="attr: {autocomplete: autocomplete}" + autocomplete="off" data-validate="{required:true}">