Lines Matching refs:username
92 * @param string $username
97 public function generatePassword($username, $try = 0) argument
101 if ($pw && $this->checkPolicy($pw, $username)) return $pw;
106 if ($pw && $this->checkPolicy($pw, $username)) return $pw;
110 if ($pw && $this->checkPolicy($pw, $username)) return $pw;
113 if ($try < 3) return $this->generatePassword($username, $try + 1);
167 * @param string $username
170 public function checkPolicy($pass, $username) argument
194 $username = utf8_strtolower($username);
196 if ($this->usernamecheck && $username) {
198 … if (utf8_stripspecials($pass, '', '\._\-:\*') == utf8_stripspecials($username, '', '\._\-:\*')) {
217 if (preg_match("/($re)/", $username)) {