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/55179
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
}
}
if (isset($postValues['password'])) {
- $value = $postValues['password'];
- if (strlen($value) <= 50) {
- $defaultConnectionSettings['password'] = $value;
- } else {
- $errorStatus = GeneralUtility::makeInstance(ErrorStatus::class);
- $errorStatus->setTitle('Database password not valid');
- $errorStatus->setMessage('Given password must be shorter than fifty characters.');
- $result[] = $errorStatus;
- }
+ $defaultConnectionSettings['password'] = $postValues['password'];
}
if (isset($postValues['host'])) {
$value = $postValues['host'];