mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-07 16:15:22 +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;
|
||||
|
||||
if ($password === '')
|
||||
if ($password === '' || $config['pass_complex'] === 'PASS_TYPE_ANY')
|
||||
{
|
||||
// Password empty or no password complexity required.
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -1659,9 +1660,6 @@ function validate_password($password)
|
||||
case 'PASS_TYPE_CASE':
|
||||
$chars[] = $low;
|
||||
$chars[] = $upp;
|
||||
|
||||
// No requirements
|
||||
case 'PASS_TYPE_ANY':
|
||||
}
|
||||
|
||||
if ($pcre)
|
||||
|
Loading…
x
Reference in New Issue
Block a user