From: Jan Schneider Date: Mon, 15 Jun 2009 22:40:31 +0000 (+0200) Subject: Use password field for PGP passphrase dialog. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=dda0478f8472db4a66c26408112c33e83187b259;p=horde.git Use password field for PGP passphrase dialog. --- diff --git a/imp/js/src/dialog.js b/imp/js/src/dialog.js index d4c3a01e0..8ea7321d5 100644 --- a/imp/js/src/dialog.js +++ b/imp/js/src/dialog.js @@ -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) { diff --git a/imp/lib/IMP.php b/imp/lib/IMP.php index 9f2a3702d..d3fdd1d8e 100644 --- a/imp/lib/IMP.php +++ b/imp/lib/IMP.php @@ -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") );