Lines Matching refs:pass
172 * @param string $pass true if the password validates against the policy
176 public function checkPolicy($pass, $username) argument
181 if (strlen($pass) < $this->min_length) {
187 if (!empty($this->usepools['lower'])) $matched_pools += (int)preg_match('/[a-z]/', $pass);
188 if (!empty($this->usepools['upper'])) $matched_pools += (int)preg_match('/[A-Z]/', $pass);
189 if (!empty($this->usepools['numeric'])) $matched_pools += (int)preg_match('/\d/', $pass);
193 $pass
201 $pass = PhpString::strtolower($pass);
206 …if (Clean::stripspecials($pass, '', '\._\-:\*') == Clean::stripspecials($username, '', '\._\-:\*')…
214 for ($i = 0; $i < PhpString::strlen($pass) - $this->usernamecheck + 1; $i++) {
215 $chunk = PhpString::substr($pass, $i, $this->usernamecheck + 1);
234 if (in_array("$pass\n", $commons)) {
240 if ($this->noleaked && $this->isLeaked($pass)) {