summaryrefslogtreecommitdiff
path: root/plugins/password/drivers
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2009-06-30 17:12:45 +0000
committerthomascube <thomas@roundcube.net>2009-06-30 17:12:45 +0000
commit6a765a9355661659b4a4329e125d15c2f29406b0 (patch)
treee3759b50696a882512b70c14336d6a2241ede2f7 /plugins/password/drivers
parent3d241d914ceb727f85f09e36da4529b4dc0baf14 (diff)
Use html_table class to build password form + add german localizations + codestyle (no tabs, just spaces)
Diffstat (limited to 'plugins/password/drivers')
-rw-r--r--plugins/password/drivers/sasl.php20
1 files changed, 11 insertions, 9 deletions
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;
}