Disable password autocompletion in edit forms

This commit is contained in:
Gabriel authored and David Goodwin committed 2021-08-09 09:33:01 +01:00
1 parent a9a31620d2
commit 1435e6aa46
1 file changed
+1 -1
+1 -1
View File
@@ -42,7 +42,7 @@
{html_options output=$struct.{$key}.options values=$struct.{$key}.options selected=$value_{$key}}
</select>
{elseif $field.type == 'pass' || $field.type == 'b64p'}
<input class="form-control" type="password" name="value[{$key}]"/>
<input class="form-control" type="password" name="value[{$key}]" {if $key == 'password' || $key == 'password2'}autocomplete="new-password"{/if}/>
{elseif $field.type == 'txtl'}
<textarea class="form-control" rows="10" cols="35" name="value[{$key}]">{foreach key=key2 item=field2 from=$value_{$key}}{$field2}&#10;{/foreach}</textarea>
{else}