summaryrefslogtreecommitdiff
path: root/lib/plugins/usermanager/admin.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2010-04-30 06:41:49 +0200
committerAndreas Gohr <andi@splitbrain.org>2010-04-30 06:41:49 +0200
commitd796a89110fe12c694a301f9f9e0d65875ec6d17 (patch)
tree47ea1c18ddbb86897290d32ad4e1b492b932e3af /lib/plugins/usermanager/admin.php
parentdc62d03d27d24a66840b83c5333221f5123ad203 (diff)
downloadrpg-d796a89110fe12c694a301f9f9e0d65875ec6d17.tar.gz
rpg-d796a89110fe12c694a301f9f9e0d65875ec6d17.tar.bz2
avoid autocompletion in usermanager password field
Diffstat (limited to 'lib/plugins/usermanager/admin.php')
-rw-r--r--lib/plugins/usermanager/admin.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/plugins/usermanager/admin.php b/lib/plugins/usermanager/admin.php
index 4eb923bb1..984700d41 100644
--- a/lib/plugins/usermanager/admin.php
+++ b/lib/plugins/usermanager/admin.php
@@ -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\" />";