[TASK] Support longer database passwords 37/54137/6
authorTobias Hüske <t.hueske@mittwald.de>
Sat, 9 Dec 2017 05:39:06 +0000 (06:39 +0100)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Sat, 9 Dec 2017 17:02:31 +0000 (18:02 +0100)
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>
typo3/sysext/install/Classes/Controller/InstallerController.php

index b2b9a5b..5ab73d3 100644 (file)
@@ -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'];