From 3b28c35cf56e6d94f2a33400aa983e090dedb967 Mon Sep 17 00:00:00 2001 From: Jennifer Melot Date: Sat, 8 Jun 2024 17:22:59 -0400 Subject: [PATCH] Set autocomplete to "off" in form.password Related to: https://github.com/apache/airflow/issues/40125 --- .../templates/appbuilder/general/security/login_db.html | 2 +- .../templates/appbuilder/general/security/login_ldap.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flask_appbuilder/templates/appbuilder/general/security/login_db.html b/flask_appbuilder/templates/appbuilder/general/security/login_db.html index 3546706c6d..6008c598e3 100644 --- a/flask_appbuilder/templates/appbuilder/general/security/login_db.html +++ b/flask_appbuilder/templates/appbuilder/general/security/login_db.html @@ -31,7 +31,7 @@
- {{ form.password(size = 80, class = "form-control") }} + {{ form.password(size = 80, class = "form-control", autocomplete = "off") }}
{% for error in form.errors.get('openid', []) %} [{{error}}]
diff --git a/flask_appbuilder/templates/appbuilder/general/security/login_ldap.html b/flask_appbuilder/templates/appbuilder/general/security/login_ldap.html index bb32cb3aa7..906567141c 100644 --- a/flask_appbuilder/templates/appbuilder/general/security/login_ldap.html +++ b/flask_appbuilder/templates/appbuilder/general/security/login_ldap.html @@ -27,7 +27,7 @@
- {{ form.password(size = 80, class = "form-control") }} + {{ form.password(size = 80, class = "form-control", autocomplete = "off") }}
{% for error in form.errors.get('openid', []) %} [{{error}}]