Lines Matching refs:pass
166 * @param string $pass true if the password validates against the policy
170 public function checkPolicy($pass, $username) argument
175 if (strlen($pass) < $this->min_length) {
181 if (!empty($this->usepools['lower'])) $matched_pools += (int)preg_match('/[a-z]/', $pass);
182 if (!empty($this->usepools['upper'])) $matched_pools += (int)preg_match('/[A-Z]/', $pass);
183 if (!empty($this->usepools['numeric'])) $matched_pools += (int)preg_match('/[0-9]/', $pass);
186 $pass);
193 $pass = utf8_strtolower($pass);
198 … if (utf8_stripspecials($pass, '', '\._\-:\*') == utf8_stripspecials($username, '', '\._\-:\*')) {
206 for ($i = 0; $i < utf8_strlen($pass) - $this->usernamecheck + 1; $i++) {
207 $chunk = utf8_substr($pass, $i, $this->usernamecheck + 1);
226 if (in_array("$pass\n", $commons)) {
232 if ($this->noleaked && $this->isLeaked($pass)) {