Code

Fixed typo in password chanage
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 14 Jan 2011 13:53:51 +0000 (13:53 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 14 Jan 2011 13:53:51 +0000 (13:53 +0000)
-If a password proposal is selected, we've to use it instead of POST['new_password']

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@20586 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/users/class_userManagement.inc

index 97182f56032b5872000b2e6308467d8679618ed4..9b1c574c250c72dd530f686df96d910864bb3746 100644 (file)
@@ -342,7 +342,7 @@ class userManagement extends management
                   $ldap->cat($this->dn,array('uid'));
                   $attrs = $ldap->fetch();
                   exec($this->config->get_cfg_value("passwordHook")." ".
-                          escapeshellarg($attrs['uid'][0])." ".escapeshellarg($_POST['new_password']), $resarr);
+                          escapeshellarg($attrs['uid'][0])." ".escapeshellarg($new_password), $resarr);
               }
 
               // The user has to change his password on next login