Code

Updated class_user.inc
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 25 Apr 2008 08:22:15 +0000 (08:22 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 25 Apr 2008 08:22:15 +0000 (08:22 +0000)
-If no valid password method was be found for the current hash, the php execution was aborted.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10682 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/personal/generic/class_user.inc

index 8d4e92706fc1c3121d2f8bc9a77ada845538018b..3ae5f62140f2337d31bfa8330e215cb6102d2640 100644 (file)
@@ -186,7 +186,9 @@ class user extends plugin
        $matches= array();
         if (preg_match ("/^{[^}]+}/", $this->attrs['userPassword'][0])){
           $tmp= passwordMethod::get_method($this->attrs['userPassword'][0]);
-          $this->pw_storage= $tmp->get_hash(); 
+          if(is_object($tmp)){
+            $this->pw_storage= $tmp->get_hash(); 
+          }
 
         } else {
           if ($this->attrs['userPassword'][0] != ""){