summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvbenincasa <vbenincasa@gmail.com>2009-09-20 19:37:40 +0000
committervbenincasa <vbenincasa@gmail.com>2009-09-20 19:37:40 +0000
commit104a14d18f99b05060a48ae7d9fbc0e96416c347 (patch)
tree1afafe727fea9854424fd2c75ca00e9df477949c
parentbdab2c5faf8a2b311debce0b724a0b2df02aa60c (diff)
- Password plugin: fix vpopmaild driver
-rw-r--r--plugins/password/drivers/vpopmaild.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/password/drivers/vpopmaild.php b/plugins/password/drivers/vpopmaild.php
index b44734036..db57eaf70 100644
--- a/plugins/password/drivers/vpopmaild.php
+++ b/plugins/password/drivers/vpopmaild.php
@@ -29,6 +29,7 @@ function password_save($curpass, $passwd)
$vpopmaild->writeLine("slogin ". $_SESSION['username'] . " " . $curpass);
$result = $vpopmaild->readLine();
if(!preg_match('/^\+OK/', $result) ) {
+ $vpopmaild->writeLine("quit");
$vpopmaild->disconnect();
return PASSWORD_ERROR;
}
@@ -36,6 +37,7 @@ function password_save($curpass, $passwd)
$vpopmaild->writeLine("mod_user ". $_SESSION['username']);
$result = $vpopmaild->readLine();
if(!preg_match('/^\+OK/', $result) ) {
+ $vpopmaild->writeLine("quit");
$vpopmaild->disconnect();
return PASSWORD_ERROR;
}
@@ -43,6 +45,7 @@ function password_save($curpass, $passwd)
$vpopmaild->writeLine("clear_text_password ". $passwd);
$vpopmaild->writeLine(".");
$result = $vpopmaild->readLine();
+ $vpopmaild->writeLine("quit");
$vpopmaild->disconnect();
if (!preg_match('/^\+OK/', $result))
return PASSWORD_ERROR;