From: hickert Date: Fri, 4 Sep 2009 12:59:28 +0000 (+0000) Subject: Moved password change method into an extra function X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b88f685b0e716d295ba10e854969487dabc7b4f2;p=gosa.git Moved password change method into an extra function -This keeps the functionality and allows us to easily overwrite the behaviour. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14208 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 db087e57c..f0b288b75 100644 --- a/gosa-core/plugins/personal/password/class_password.inc +++ b/gosa-core/plugins/personal/password/class_password.inc @@ -113,7 +113,7 @@ class password extends plugin msg_dialog::display(_("Password change"), _("You have no permission to change your password."),WARNING_DIALOG); }else{ - change_password ($ui->dn, $_POST['new_password']); + $this->change_password($ui->dn, $_POST['new_password']); gosa_log ("User/password has been changed"); $ui->password= $_POST['new_password']; session::set('ui',$ui); @@ -126,6 +126,11 @@ class password extends plugin return($smarty->fetch(get_template_path("password.tpl", TRUE))); } + function change_password($dn, $pwd) + { + change_password ($dn, $pwd); + } + function remove_from_parent() { $this->handle_post_events("remove");