Lines Matching defs:userdata
125 $userdata = $this->selectUser($user);
126 if ($userdata == false) return false;
130 $userdata['clear'] = $pass;
131 $userdata['hash'] = auth_cryptPassword($pass);
132 $result = $this->query($this->getConf('check-pass'), $userdata);
138 if (isset($userdata['hash'])) {
141 return $passhash->verify_hash($pass, $userdata['hash']);
144 return ($pass === $userdata['clear']);
210 $userdata = ['user' => $user, 'clear' => $clear, 'hash' => $hash, 'name' => $name, 'mail' => $mail];
216 $ok = $this->query($this->getConf('insert-user'), $userdata);
218 $userdata = $this->getUserData($user, false);
219 if ($userdata === false) goto FAIL;
233 $ok = $this->joinGroup($userdata, $allgroups[$group]);
515 $userdata = $this->getUserData($user);
516 if ($userdata === false) goto FAIL;
520 foreach ($userdata['grps'] as $group) {
522 $this->leaveGroup($userdata, $allgroups[$group]);
526 $ok = $this->query($this->getConf('delete-user'), $userdata);
540 * @param array $userdata The userdata as returned by _selectUser()
543 protected function selectUserGroups($userdata)
547 $result = $this->query($sql, $userdata);
612 * @param array $userdata all the user data
616 protected function joinGroup($userdata, $groupdata)
618 $data = array_merge($userdata, $groupdata);
628 * @param array $userdata all the user data
632 protected function leaveGroup($userdata, $groupdata)
634 $data = array_merge($userdata, $groupdata);