function password_strength_strength_pattern in Password Strength 6.2
Same name and namespace in other branches
- 7 password_strength.module \password_strength_strength_pattern()
Determines the flaw pattern from the match object.
This is an internal key that the module will use when displaying the flaws found in the password.
Parameters
object $match: An match object.
Return value
string An internal pattern identifier.
1 call to password_strength_strength_pattern()
- password_strength_strength in ./
password_strength.module - Gets Zxcvbn entropy and score for a password.
File
- ./
password_strength.module, line 413 - Provides password controls, validation, and strength checker.
Code
function password_strength_strength_pattern($match) {
if (isset($match->l33t) && $match->l33t) {
$pattern = 'leetspeak';
}
else {
$pattern = $match->pattern;
}
return $pattern;
}