From 86cfe7aa720eb5295d15b9d30197bedc03d3a905 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 5 Dec 2007 14:35:29 +0000 Subject: [PATCH] Ensure that password methods do correct cleanup git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8018 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/generic/class_user.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/personal/generic/class_user.inc b/plugins/personal/generic/class_user.inc index fbb55c12a..8e35f8b1a 100644 --- a/plugins/personal/generic/class_user.inc +++ b/plugins/personal/generic/class_user.inc @@ -1036,10 +1036,9 @@ class user extends plugin if ($this->pw_storage != $this->last_pw_storage){ $tmp = new passwordMethod($_SESSION['config']); $available = $tmp->get_available_methods(); - if (in_array_ics($this->pw_storage, $available['name'])){ - $test= new $available[$this->pw_storage]($this->config); + if (in_array_ics($this->last_pw_storage, $available['name'])){ + $test= new $available[$this->last_pw_storage]($this->config,$this->dn); $test->attrs= $this->attrs; - $test->dn= $this->dn; $test->remove_from_parent(); } } -- 2.30.2