- add possibility to define password-complexity, fixes #292

This commit is contained in:
Michael Kaufmann (d00p)
2010-07-19 08:06:18 +00:00
parent c43574a714
commit 5f34dfa968
9 changed files with 85 additions and 3 deletions

View File

@@ -39,5 +39,14 @@ function validatePassword($password = null)
);
}
if ($settings['panel']['password_regex'] != '') {
$password = validate(
$password,
$settings['panel']['password_regex'],
$settings['panel']['password_regex'],
'notrequiredpasswordcomplexity'
);
}
return $password;
}