This is an automated email from the ASF dual-hosted git repository.
kaxilnaik pushed a commit to branch v2-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
commit ba726476e439718a2cbdb4923fdfe915f793328b
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sun Dec 15 17:18:54 2024 +0200
[v2-10-test] Set Autocomplete Off on Login Form - Main (#44929) (#44940)
* #44019 - Set autocomplete to off for username and password login form
* fixed static check
(cherry picked from commit c77c7f003a2458698a1d5a440670b9728783ff78)
Co-authored-by: James Regan <[email protected]>
---
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 95861ea6c13..600cffc5946 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";
});