From 7d5c90da4872d437dca8b4564e1169bff3a5bd89 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 30 Dec 2009 17:19:23 +0000 Subject: [PATCH] We've to enforce password set after apply&&cancel too git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14991 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../plugins/admin/users/class_userManagement.inc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gosa-core/plugins/admin/users/class_userManagement.inc b/gosa-core/plugins/admin/users/class_userManagement.inc index 00d635366..eba470ebf 100644 --- a/gosa-core/plugins/admin/users/class_userManagement.inc +++ b/gosa-core/plugins/admin/users/class_userManagement.inc @@ -302,6 +302,17 @@ class userManagement extends management } } + function cancelEdit() + { + management::cancelEdit(); + + if(isset($this->last_tabObject->by_object['user']) && $this->last_tabObject->by_object['user']->password_change_needed()){ + $this->force_hash_type[$this->last_tabObject->dn] = $this->last_tabObject->by_object['user']->pw_storage; + $this->pwd_change_queue[] = $this->last_tabObject->dn; + return($this->handlePasswordQueue()); + } + } + /*! \brief Intiates user creation. * If we've user templates, then the user will be asked to use to use one. -- 2.30.2