prevent browsers from saving passwords
authorIvan Kohler <ivan@freeside.biz>
Fri, 25 Oct 2013 06:25:48 +0000 (23:25 -0700)
committerIvan Kohler <ivan@freeside.biz>
Fri, 25 Oct 2013 06:25:48 +0000 (23:25 -0700)
httemplate/elements/input-text.html
httemplate/elements/tr-password.html

index 8279415..18272eb 100644 (file)
@@ -5,6 +5,7 @@
                            <% $size %>
                            <% $maxlength %>
                            <% $style %>
+                           <% $opt{autocomplete} ? 'autocomplete="off"' : '' %>
                            <% $opt{disabled} %>
                            <% $onchange %>
                     ><% $opt{'postfix'} %>
index d19c4ed..8ad303c 100644 (file)
@@ -1,3 +1,4 @@
 <& tr-input-text.html, @_,
-             'type'   => 'password',
+     'type'         => 'password',
+     'autocomplete' => 1,
 &>