summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-10-24 23:25:48 -0700
committerIvan Kohler <ivan@freeside.biz>2013-10-24 23:25:48 -0700
commit317d3ddb21bd6228ae91d22adcca6978edbb27d0 (patch)
tree770a8d8bda17ba9dd0acc3a0fdfdd87bb841bacd
parent9be8cf75b8e510fb0e6489f90188d391b861b247 (diff)
prevent browsers from saving passwords
-rw-r--r--httemplate/elements/input-text.html1
-rw-r--r--httemplate/elements/tr-password.html3
2 files changed, 3 insertions, 1 deletions
diff --git a/httemplate/elements/input-text.html b/httemplate/elements/input-text.html
index 827941501..18272ebe2 100644
--- a/httemplate/elements/input-text.html
+++ b/httemplate/elements/input-text.html
@@ -5,6 +5,7 @@
<% $size %>
<% $maxlength %>
<% $style %>
+ <% $opt{autocomplete} ? 'autocomplete="off"' : '' %>
<% $opt{disabled} %>
<% $onchange %>
><% $opt{'postfix'} %>
diff --git a/httemplate/elements/tr-password.html b/httemplate/elements/tr-password.html
index d19c4ed0e..8ad303c67 100644
--- a/httemplate/elements/tr-password.html
+++ b/httemplate/elements/tr-password.html
@@ -1,3 +1,4 @@
<& tr-input-text.html, @_,
- 'type' => 'password',
+ 'type' => 'password',
+ 'autocomplete' => 1,
&>