diff options
author | Alexander Sulfrian <alex@spline.inf.fu-berlin.de> | 2016-01-12 03:42:21 +0100 |
---|---|---|
committer | Alexander Sulfrian <alex@spline.inf.fu-berlin.de> | 2016-01-12 04:05:49 +0100 |
commit | 6687bc8fced2d5bbfec79d5d908f13448dd1e732 (patch) | |
tree | 0aec2ccc552429f06edcc02f4160556bdfea3f7d /templates/pad_change.html | |
parent | 4d81829ff47208ffe19eb3bd2d472a5344844374 (diff) | |
download | padlite-teams-6687bc8fced2d5bbfec79d5d908f13448dd1e732.tar.gz padlite-teams-6687bc8fced2d5bbfec79d5d908f13448dd1e732.tar.bz2 padlite-teams-6687bc8fced2d5bbfec79d5d908f13448dd1e732.zip |
forms: Try to disable autocomplete on forms with password fields
By default browsers (at least chrome is very agressive) try to detect forms
with password inputs and try to insert saved passwords (for example from the
login page). The default attribute to disable this (autocomplete=off) is
ignored sometimes. Therefore we add two hidden input fields, that disable
the auto filling at least in chrome.
Diffstat (limited to 'templates/pad_change.html')
-rw-r--r-- | templates/pad_change.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/pad_change.html b/templates/pad_change.html index afa0633..5e46d70 100644 --- a/templates/pad_change.html +++ b/templates/pad_change.html @@ -19,6 +19,12 @@ <div class="panel-body"> <form class="form-horizontal" role="form" method="POST"> + <!-- + this will prevent chrome from filling the saved login password + into this form (chrome ignores autocomplete=off) + --> + <input type="text" class="hidden" /><input type="password" class="hidden" /> + {% for field in change_form %} {{ render_field(field) }} {% endfor %} |