Lines Matching defs:changes
252 * @param array $changes array of field/value pairs to be changed (password will be clear text)
255 public function modifyUser($user, $changes)
265 if (isset($changes['user'])) {
266 if ($this->getUserData($changes['user'], false)) goto FAIL;
268 $params['newlogin'] = $changes['user'];
275 if (isset($changes['pass'])) {
277 $params['clear'] = $changes['pass'];
278 $params['hash'] = auth_cryptPassword($changes['pass']);
285 if (isset($changes['mail']) || isset($changes['name'])) {
287 if (isset($changes['mail'])) $params['mail'] = $changes['mail'];
288 if (isset($changes['name'])) $params['name'] = $changes['name'];
295 if (isset($changes['grps'])) {
300 if (!in_array($group, $changes['grps']) && isset($allgroups[$group])) {
308 foreach ($changes['grps'] as $group) {
319 foreach ($changes['grps'] as $group) {