Use password field for PGP passphrase dialog.
authorJan Schneider <jan@horde.org>
Mon, 15 Jun 2009 22:40:31 +0000 (00:40 +0200)
committerJan Schneider <jan@horde.org>
Mon, 15 Jun 2009 22:43:41 +0000 (00:43 +0200)
imp/js/src/dialog.js
imp/lib/IMP.php

index d4c3a01..8ea7321 100644 (file)
@@ -41,7 +41,7 @@ var IMPDialog = {
         if (data.form) {
             n.insert(data.form);
         } else {
-            n.insert(new Element('INPUT', { name: 'dialog_input', type: 'text', size: 15 }));
+            n.insert(new Element('INPUT', { name: 'dialog_input', type: data.password ? 'password' : 'text', size: 15 }));
         }
 
         if (data.ok_text) {
index 9f2a370..d3fdd1d 100644 (file)
@@ -1966,6 +1966,7 @@ class IMP
             'uri' => Horde::applicationUrl('ajax.php', true, -1) . '/' . $type,
             'params' => $params,
             'text' => $text,
+            'password' => true,
             'ok_text' => _("OK"),
             'cancel_text' => _("Cancel")
         );