summaryrefslogtreecommitdiff
path: root/plugins/sasl_password
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-05-31 11:40:07 +0000
committeralecpl <alec@alec.pl>2009-05-31 11:40:07 +0000
commitd257c4064f68d3c43ca3330b466eb4d7eaaa1165 (patch)
treede7d9954bb88e64a30f3de0cb5de1c82708f7478 /plugins/sasl_password
parent9808b3c437d841a88234272ba2c023ab70ccd580 (diff)
- don't register body handler on plugin init (#1485888)
Diffstat (limited to 'plugins/sasl_password')
-rw-r--r--plugins/sasl_password/sasl_password.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/sasl_password/sasl_password.php b/plugins/sasl_password/sasl_password.php
index ed1624e71..0152ec2ba 100644
--- a/plugins/sasl_password/sasl_password.php
+++ b/plugins/sasl_password/sasl_password.php
@@ -26,13 +26,14 @@ class sasl_password extends rcube_plugin
$rcmail->output->add_label('password');
$this->register_action('plugin.saslpassword', array($this, 'password_init'));
$this->register_action('plugin.saslpassword-save', array($this, 'password_save'));
- $this->register_handler('plugin.body', array($this, 'password_form'));
$this->include_script('sasl_password.js');
}
function password_init()
{
$this->add_texts('locale/');
+ $this->register_handler('plugin.body', array($this, 'password_form'));
+
$rcmail = rcmail::get_instance();
$rcmail->output->set_pagetitle($this->gettext('changepasswd'));
$rcmail->output->send('plugin');
@@ -43,6 +44,7 @@ class sasl_password extends rcube_plugin
$rcmail = rcmail::get_instance();
$this->add_texts('locale/');
+ $this->register_handler('plugin.body', array($this, 'password_form'));
if (!isset($_POST['_curpasswd']) || !isset($_POST['_newpasswd'])) {
$rcmail->output->command('display_message', $this->gettext('nopassword'), 'error');