Lines Matching refs:user

63      * @param string $user
67 public function checkPass($user, $pass) argument
69 $userinfo = $this->getUserData($user);
72 return auth_verifyPassword($pass, $this->users[$user]['pass']);
86 * @param string $user
90 public function getUserData($user, $requireGroups = true) argument
93 return isset($this->users[$user]) ? $this->users[$user] : false;
101 * @param string $user
108 protected function createUserLine($user, $pass, $name, $mail, $grps) argument
111 $userline = array($user, $pass, $name, $mail, $groups);
130 * @param string $user
137 public function createUser($user, $pwd, $name, $mail, $grps = null) argument
143 if ($this->getUserData($user) !== false) {
154 $userline = $this->createUserLine($user, $pass, $name, $mail, $grps);
161 $this->users[$user] = compact('pass', 'name', 'mail', 'grps');
169 * @param string $user nick of the user to be changed
173 public function modifyUser($user, $changes) argument
179 if (($userinfo = $this->getUserData($user)) === false) {
186 msg(sprintf($this->getLang('protected'), hsc($user)), -1);
193 $newuser = $user;
211 …if (!io_replaceInFile($config_cascade['plainauth.users']['default'], '/^'.$user.':/', $userline, t…
218 if(isset($this->users[$user])) unset($this->users[$user]);
239 foreach ($users as $user) {
241 if (!empty($this->users[$user]['protected'])) {
242 msg(sprintf($this->getLang('protected'), hsc($user)), -1);
245 if (isset($this->users[$user])) $deleted[] = preg_quote($user, '/');
281 foreach ($this->users as $user => $info) {
282 $count += $this->filter($user, $info);
310 foreach ($this->users as $user => $info) {
311 if ($this->filter($user, $info)) {
313 $out[$user] = $info;
337 foreach($this->users as $user => $info) {
351 * @param string $user
354 public function cleanUser($user) argument
357 return cleanID(str_replace(':', $conf['sepchar'], $user));
467 * @param string $user User login
471 protected function filter($user, $info) argument
475 if (!preg_match($pattern, $user)) return false;