Browse Source

bugfixing

andre 5 years ago
parent
commit
4601d2a2f1
1 changed files with 8 additions and 1 deletions
  1. 8 1
      zimbraSingle.inc

+ 8 - 1
zimbraSingle.inc

@@ -290,6 +290,13 @@ function zimbraSingleChangePassword($userData) {
     }
     $apiAccountManager = new Zm_Account($api);
     $response = $apiAccountManager->setAccountPassword($account_name, $userData['password']);
+    logModuleCall(
+        'zimbrasingle',
+        __FUNCTION__,
+        $checkPW,
+        "Debug",
+        $response
+    );
     if(is_a($response, "Exception")) {
         logModuleCall(
             'zimbrasingle',
@@ -566,7 +573,7 @@ function zimbraSingleCheckPassword($pwd)
 {
     $message = '';
     if (strlen($pwd) < 8) {
-        $message .= "Das das Passwort ist zu kurz. Es werden mind. 9 Zeichen benötigt" . PHP_EOL;
+        $message .= "Das das Passwort ist zu kurz. Es werden mind. 8 Zeichen benötigt" . PHP_EOL;
     }
     if (!preg_match("#[0-9]+#", $pwd)) {
         $message .= "Das Passwort muss mindestens eine Zahl enthalten" . PHP_EOL;