From 074f81ad03ab60789053979915cfafe9c60002c0 Mon Sep 17 00:00:00 2001 From: James Regan Date: Sun, 15 Dec 2024 04:25:34 -0500 Subject: [PATCH] [v2-10-test] Set Autocomplete Off on Login Form - Main (#44929) * #44019 - Set autocomplete to off for username and password login form * fixed static check (cherry picked from commit c77c7f003a2458698a1d5a440670b9728783ff78) Co-authored-by: James Regan --- airflow/www/static/js/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/airflow/www/static/js/main.js b/airflow/www/static/js/main.js index 95861ea6c13a6..600cffc5946d0 100644 --- a/airflow/www/static/js/main.js +++ b/airflow/www/static/js/main.js @@ -286,4 +286,8 @@ $(document).ready(() => { // Global Tooltip selector $(".js-tooltip").tooltip(); + + // Turn off autocomplete for login form + $("#username:input")[0].autocomplete = "off"; + $("#password:input")[0].autocomplete = "off"; });