Code

Moved password change method into an extra function
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 4 Sep 2009 12:59:28 +0000 (12:59 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 4 Sep 2009 12:59:28 +0000 (12:59 +0000)
-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

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

index db087e57cb2aa821eb615c1f7f0f945d193ebb50..f0b288b755dc085b9bacc7663fdae68ee3227623 100644 (file)
@@ -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");