Skip to content
Snippets Groups Projects
Commit ee54059b authored by Timo Voipio's avatar Timo Voipio
Browse files

Fix visible passwords in usermanager plugin FS#1624

Ignore-this: 3dc13a990c4b6eadeb02065f08460e09

darcs-hash:20090526084719-50e58-26bad1d1e0cd4bcc4f03bbc40d6bfbdb09a3544a.gz
parent c5a54180
No related branches found
No related tags found
No related merge requests found
......@@ -323,14 +323,16 @@ class admin_plugin_usermanager extends DokuWiki_Admin_Plugin {
$disabled = $cando ? '' : ' disabled="disabled"';
echo str_pad('',$indent);
$fieldtype = ($name == "userpass") ? 'password' : 'text';
echo "<tr $class>";
echo "<td><label for=\"$id\" >$label: </label></td>";
echo "<td>";
if($cando){
echo "<input type=\"text\" id=\"$id\" name=\"$name\" value=\"$value\" class=\"edit\" />";
echo "<input type=\"$fieldtype\" id=\"$id\" name=\"$name\" value=\"$value\" class=\"edit\" />";
}else{
echo "<input type=\"hidden\" name=\"$name\" value=\"$value\" />";
echo "<input type=\"text\" id=\"$id\" name=\"$name\" value=\"$value\" class=\"edit disabled\" disabled=\"disabled\" />";
echo "<input type=\"$fieldtype\" id=\"$id\" name=\"$name\" value=\"$value\" class=\"edit disabled\" disabled=\"disabled\" />";
}
echo "</td>";
echo "</tr>";
......
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