summaryrefslogtreecommitdiff
path: root/roundcubemail/plugins/password/drivers
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-06-30 17:12:45 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-06-30 17:12:45 +0000
commitcf876a73fbd2108a4d55c185dbf7df780d2eb4f2 (patch)
tree0725b59835d7e677089eb1b3ff11759873d9034e /roundcubemail/plugins/password/drivers
parentaa8bd30590dc8499e0b0a6f801c4956f8f712f61 (diff)
Use html_table class to build password form + add german localizations + codestyle (no tabs, just spaces)
git-svn-id: https://svn.roundcube.net/trunk@2687 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/plugins/password/drivers')
-rw-r--r--roundcubemail/plugins/password/drivers/sasl.php20
1 files changed, 11 insertions, 9 deletions
diff --git a/roundcubemail/plugins/password/drivers/sasl.php b/roundcubemail/plugins/password/drivers/sasl.php
index 361333403..0f762e50d 100644
--- a/roundcubemail/plugins/password/drivers/sasl.php
+++ b/roundcubemail/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;
}