1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/14465] Remove setting for maximum password length

PHPBB3-14465
This commit is contained in:
Marc Alexander
2019-10-03 23:05:02 +02:00
parent 68c197fd60
commit 60bc949ba1
11 changed files with 61 additions and 23 deletions

View File

@@ -393,10 +393,10 @@ class reset_password
];
$check_data = [
'new_password' => [
['string', false, $this->config['min_pass_chars'], $this->config['max_pass_chars']],
['string', false, $this->config['min_pass_chars'], 0],
['password'],
],
'password_confirm' => ['string', true, $this->config['min_pass_chars'], $this->config['max_pass_chars']],
'password_confirm' => ['string', true, $this->config['min_pass_chars'], 0],
];
$errors = array_merge($errors, validate_data($data, $check_data));
if (strcmp($data['new_password'], $data['password_confirm']) !== 0)