Skip to content
Snippets Groups Projects
Commit d796a891 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

avoid autocompletion in usermanager password field

parent dc62d03d
No related branches found
No related tags found
No related merge requests found
......@@ -321,13 +321,20 @@ class admin_plugin_usermanager extends DokuWiki_Admin_Plugin {
$disabled = $cando ? '' : ' disabled="disabled"';
echo str_pad('',$indent);
$fieldtype = ($name == "userpass") ? 'password' : 'text';
if($name == 'userpass'){
$fieldtype = 'password';
$autocomp = 'autocomplete="off"';
}else{
$fieldtype = 'text';
$autocomp = '';
}
echo "<tr $class>";
echo "<td><label for=\"$id\" >$label: </label></td>";
echo "<td>";
if($cando){
echo "<input type=\"$fieldtype\" id=\"$id\" name=\"$name\" value=\"$value\" class=\"edit\" />";
echo "<input type=\"$fieldtype\" id=\"$id\" name=\"$name\" value=\"$value\" class=\"edit\" $autocomp />";
}else{
echo "<input type=\"hidden\" name=\"$name\" value=\"$value\" />";
echo "<input type=\"$fieldtype\" id=\"$id\" name=\"$name\" value=\"$value\" class=\"edit disabled\" disabled=\"disabled\" />";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment