mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-08 08:35:31 +02:00
[ticket/9751] Add shortcut logic for pass_complex == PASS_TYPE_ANY.
Add shortcut logic for pass_complex because this is the default value phpBB ships with and there is nothing to do in that function in that case. PHPBB3-9751
This commit is contained in:
parent
7cc32d3843
commit
4dce53628c
@ -1605,8 +1605,9 @@ function validate_password($password)
|
|||||||
{
|
{
|
||||||
global $config, $db, $user;
|
global $config, $db, $user;
|
||||||
|
|
||||||
if ($password === '')
|
if ($password === '' || $config['pass_complex'] === 'PASS_TYPE_ANY')
|
||||||
{
|
{
|
||||||
|
// Password empty or no password complexity required.
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1659,9 +1660,6 @@ function validate_password($password)
|
|||||||
case 'PASS_TYPE_CASE':
|
case 'PASS_TYPE_CASE':
|
||||||
$chars[] = $low;
|
$chars[] = $low;
|
||||||
$chars[] = $upp;
|
$chars[] = $upp;
|
||||||
|
|
||||||
// No requirements
|
|
||||||
case 'PASS_TYPE_ANY':
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($pcre)
|
if ($pcre)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user