From dda0478f8472db4a66c26408112c33e83187b259 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 16 Jun 2009 00:40:31 +0200 Subject: [PATCH] Use password field for PGP passphrase dialog. --- imp/js/src/dialog.js | 2 +- imp/lib/IMP.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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") ); -- 2.11.0