From 6a765a9355661659b4a4329e125d15c2f29406b0 Mon Sep 17 00:00:00 2001 From: thomascube Date: Tue, 30 Jun 2009 17:12:45 +0000 Subject: Use html_table class to build password form + add german localizations + codestyle (no tabs, just spaces) --- plugins/password/drivers/sasl.php | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'plugins/password/drivers') diff --git a/plugins/password/drivers/sasl.php b/plugins/password/drivers/sasl.php index 361333403..0f762e50d 100644 --- a/plugins/password/drivers/sasl.php +++ b/plugins/password/drivers/sasl.php @@ -22,18 +22,20 @@ function password_save($currpass, $newpass) $username = escapeshellcmd($_SESSION['username']); if ($fh = popen("$curdir/chgsaslpasswd -p $username", 'w')) { - fwrite($fh, $newpass."\n"); + fwrite($fh, $newpass."\n"); $code = pclose($fh); - if($code == 0) - return PASSWORD_SUCCESS; - } else - raise_error(array( + if ($code == 0) + return PASSWORD_SUCCESS; + } + else { + raise_error(array( 'code' => 600, - 'type' => 'php', - 'file' = __FILE__, - 'message' => "Password plugin: Unable to execute $curdir/chgsaslpasswd" - ), true, false); + 'type' => 'php', + 'file' => __FILE__, + 'message' => "Password plugin: Unable to execute $curdir/chgsaslpasswd" + ), true, false); + } return PASSWORD_ERROR; } -- cgit v1.2.3