From 682f770aab17707e42c1d3093a2982624003d2e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20H=C3=BCske?= <t.hueske@mittwald.de> Date: Sat, 9 Dec 2017 06:39:06 +0100 Subject: [PATCH] [TASK] Support longer database passwords Sometimes the database user has a password that is larger than 50 characters. At the moment TYPO3 throws an error message when entering this password. Microsoft SQL Server passwords can contain up to 128 characters, MySQL & PostgreSQL have no limitations. For this reason, the maximum password length has been increased to 128 characters. Resolves: #82479 Releases: master, 8.7 Change-Id: I4ff5ef85ec74f1ff87bfe5d3f6658196b67f8330 Reviewed-on: https://review.typo3.org/54137 Reviewed-by: Alexander Schnitzler <typo3@alexanderschnitzler.de> Tested-by: Alexander Schnitzler <typo3@alexanderschnitzler.de> Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de> Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de> --- .../Classes/Controller/InstallerController.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/typo3/sysext/install/Classes/Controller/InstallerController.php b/typo3/sysext/install/Classes/Controller/InstallerController.php index b2b9a5bdf9bc..5ab73d3f97c1 100644 --- a/typo3/sysext/install/Classes/Controller/InstallerController.php +++ b/typo3/sysext/install/Classes/Controller/InstallerController.php @@ -358,16 +358,7 @@ class InstallerController } } if (isset($postValues['password'])) { - $value = $postValues['password']; - if (strlen($value) <= 50) { - $defaultConnectionSettings['password'] = $value; - } else { - $messages[] = new FlashMessage( - 'Given password must be shorter than fifty characters.', - 'Database password not valid', - FlashMessage::ERROR - ); - } + $defaultConnectionSettings['password'] = $postValues['password']; } if (isset($postValues['host'])) { $value = $postValues['host']; -- GitLab