Explorar el Código

debug authtoken call

andre hace 5 años
padre
commit
7577d6880c
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      zimbraSingle.php

+ 2 - 1
zimbraSingle.php

@@ -758,7 +758,8 @@ function zimbraSingle_ServiceSingleSignOn($params) {
         return $domainOptions->getMessage();
     }
     $preAuthKey = $domainOptions['zimbraPreAuthKey'];
-    $authToken = new Zm_Auth($params['serverhostname'], $params['username'], $preAuthKey, 'user');
+    $userAuth = new Zm_Auth($params['serverhostname'], $params['username'], $preAuthKey, 'user');
+    $authToken = $userAuth->login();
     logModuleCall(
         'zimbrasingle',
         __FUNCTION__,