From: hickert Date: Wed, 8 Sep 2010 16:24:59 +0000 (+0000) Subject: Removed post modify hook from class password. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4e670a66316e87d186924a0fe617779bb86d9f8b;p=gosa.git Removed post modify hook from class password. -It belongs to change_password git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19572 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/personal/password/class_password.inc b/gosa-core/plugins/personal/password/class_password.inc index 74bdd97a2..24bad3a14 100644 --- a/gosa-core/plugins/personal/password/class_password.inc +++ b/gosa-core/plugins/personal/password/class_password.inc @@ -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))); } }