summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 708515a)
raw | patch | inline | side by side (parent: 708515a)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 8 Sep 2010 16:24:59 +0000 (16:24 +0000) | ||
committer | hickert <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
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19572 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/personal/password/class_password.inc | patch | blob | history |
diff --git a/gosa-core/plugins/personal/password/class_password.inc b/gosa-core/plugins/personal/password/class_password.inc
index 74bdd97a2cbabe07e605208333cabc1da57f6ddc..24bad3a144874782b5bd29c70f4c04f3651ca1cc 100644 (file)
// 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));
}
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)));
}
}