Code

Removed post modify hook from class password.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 8 Sep 2010 16:24:59 +0000 (16:24 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 8 Sep 2010 16:24:59 +0000 (16:24 +0000)
-It belongs to change_password

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

gosa-core/plugins/personal/password/class_password.inc

index 74bdd97a2cbabe07e605208333cabc1da57f6ddc..24bad3a144874782b5bd29c70f4c04f3651ca1cc 100644 (file)
@@ -158,7 +158,7 @@ class password extends plugin
 
             // Call the pre-event command and check its return code
             if(!count($message)){
-                plugin::callHook($this, 'PREMODIFY', $attrs, $output,$retCode,$error, $directlyPrintError = TRUE);
+                plugin::callHook($this, 'PREMODIFY', $attrs, $output,$retCode,$error, $directlyPrintError = FALSE);
                 if($retCode === 0 && count($output)){
                     $message[] = sprintf(_("Pre-event hook reported a problem: %s. Password change canceled!"),implode($output));
                 }
@@ -193,14 +193,6 @@ class password extends plugin
                         gosa_log ("User/password has been changed");
                         $ui->password= $new_password;
                         session::set('ui',$ui);
-
-                        // Call the post-event command and check its return code
-                        plugin::callHook($this, 'POSTMODIFY', $attrs, $output,$retCode,$error, $directlyPrintError = TRUE);
-                        if($retCode === 0 && count($output)){
-                            $message[] = sprintf(_("Post-event hook reported a problem: %s. Password change canceled!"),implode($output));
-                            echo "Rollback";
-                        }
-           
                         return($smarty->fetch(get_template_path("changed.tpl", TRUE)));
                     }
                 }