diff options
author | David Hill <dhill@redhat.com> | 2023-04-13 16:51:02 -0400 |
---|---|---|
committer | Tatiana Ovchinnikova <t.v.ovtchinnikova@gmail.com> | 2023-05-05 20:56:20 +0000 |
commit | 2ce5be2e876fe9e1d9417aa7b6093ed34724138a (patch) | |
tree | 92f9907358703d22b3ab9c40a26ef0aa6e63f435 | |
parent | 5fb729642b9b78b653ab3021f048f488977d8e64 (diff) | |
download | horizon-2ce5be2e876fe9e1d9417aa7b6093ed34724138a.tar.gz |
Disable form auto-complete on login form
Disable form auto-complete on login form with autocomplete="off" for
the email/password field.
Change-Id: Ie550eae36ece160d19186a404c0e688f2f6e785b
(cherry picked from commit e4a13dbcde0df213f9b6e7d72f45c6610192204a)
-rw-r--r-- | horizon/templates/auth/_login_form.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/horizon/templates/auth/_login_form.html b/horizon/templates/auth/_login_form.html index a4a4abad5..92c216756 100644 --- a/horizon/templates/auth/_login_form.html +++ b/horizon/templates/auth/_login_form.html @@ -26,8 +26,8 @@ {% endcomment %} {% if HORIZON_CONFIG.password_autocomplete != "on" %} <div class="fake_credentials" style="display: none"> - <input type="text" name="fake_email" value="" /> - <input type="password" name="fake_password" value="" /> + <input type="text" name="fake_email" value="" autocomplete="new-password"/> + <input type="password" name="fake_password" value="" autocomplete="new-password"/> </div> {%endif%} {% if show_sso_opts %} |