Project

General

Profile

Actions

Bug #88794

closed

Call to undefined method TYPO3\CMS\Core\Crypto\PasswordHashing\PasswordHashFactory::checkPassword() on report module

Added by Philippe COURT over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Category:
Reports
Start date:
2019-07-18
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

Description

Error {#2795 ▼
#message: "Call to undefined method TYPO3\CMS\Core\Crypto\PasswordHashing\PasswordHashFactory::checkPassword()"
#code: 0
#file: "/home/DE/pcourt/dev.sunshine.qua/web/typo3/sysext/install/Classes/Report/SecurityStatusReport.php"
#line: 65
trace: {▼
/home/DE/pcourt/dev.sunshine.qua/web/typo3/sysext/install/Classes/Report/SecurityStatusReport.php:65 {▼
› if ($installToolPassword !== '' && $hashInstance === null) {
› $validPassword = !$hashFactory->checkPassword('joh316', $installToolPassword);
› } elseif ($installToolPassword === md5('joh316')) {
}
/home/DE/pcourt/dev.sunshine.qua/web/typo3/sysext/install/Classes/Report/SecurityStatusReport.php:39 {▶}
/home/DE/pcourt/dev.sunshine.qua/web/typo3/sysext/reports/Classes/Report/Status/Status.php:95 {▶}
/home/DE/pcourt/dev.sunshine.qua/web/typo3/sysext/reports/Classes/Report/Status/Status.php:55 {▶}
/home/DE/pcourt/dev.sunshine.qua/web/typo3/sysext/reports/Classes/Controller/ReportController.php:163 {▶}
/home/DE/pcourt/dev.sunshine.qua/web/typo3/sysext/reports/Classes/Controller/ReportController.php:109 {▶}
TYPO3\CMS\Reports\Controller\ReportController->handleRequest() {}
/home/DE/pcourt/dev.sunshine.qua/web/typo3/sysext/backend/Classes/Http/RouteDispatcher.php:87 {▶}
/home/DE/pcourt/dev.sunshine.qua/web/typo3/sysext/backend/Classes/Http/RequestHandler.php:73 {▶}
/home/DE/pcourt/dev.sunshine.qua/web/typo3/sysext/backend/Classes/Middleware/SiteResolver.php:59 {▶}
/home/DE/pcourt/dev.sunshine.qua/web/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138 {▶}
/home/DE/pcourt/dev.sunshine.qua/web/typo3/sysext/backend/Classes/Middleware/AdditionalResponseHeaders.php:39 {▶}
/home/DE/pcourt/dev.sunshine.qua/web/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138 {▶}
/home/DE/pcourt/dev.sunshine.qua/web/typo3/sysext/backend/Classes/Middleware/OutputCompression.php:45 {▶}
/home/DE/pcourt/dev.sunshine.qua/web/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138 {▶}
/home/DE/pcourt/dev.sunshine.qua/web/typo3/sysext/backend/Classes/Middleware/LegacyBackendTemplateInitialization.php:42 {▶}
/home/DE/pcourt/dev.sunshine.qua/web/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138 {▶}
/home/DE/pcourt/dev.sunshine.qua/web/typo3/sysext/backend/Classes/Middleware/BackendUserAuthenticator.php:70 {▶}
/home/DE/pcourt/dev.sunshine.qua/web/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138 {▶}
/home/DE/pcourt/dev.sunshine.qua/web/typo3/sysext/backend/Classes/Middleware/BackendRouteInitialization.php:72 {▶}
/home/DE/pcourt/dev.sunshine.qua/web/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138 {▶}
/home/DE/pcourt/dev.sunshine.qua/web/typo3/sysext/backend/Classes/Middleware/ForcedHttpsBackendRedirector.php:53 {▶}
/home/DE/pcourt/dev.sunshine.qua/web/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138 {▶}
/home/DE/pcourt/dev.sunshine.qua/web/typo3/sysext/backend/Classes/Middleware/LockedBackendGuard.php:71 {▶}
/home/DE/pcourt/dev.sunshine.qua/web/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138 {▶}
/home/DE/pcourt/dev.sunshine.qua/web/typo3/sysext/core/Classes/Middleware/NormalizedParamsAttribute.php:58 {▶}
/home/DE/pcourt/dev.sunshine.qua/web/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138 {▶}
/home/DE/pcourt/dev.sunshine.qua/web/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:67 {▶}
/home/DE/pcourt/dev.sunshine.qua/web/typo3/sysext/core/Classes/Http/AbstractApplication.php:98 {▶}
/home/DE/pcourt/dev.sunshine.qua/web/typo3/sysext/backend/Classes/Http/Application.php:68 {▶}
/home/DE/pcourt/dev.sunshine.qua/web/typo3/sysext/core/Classes/Http/AbstractApplication.php:110 {▶}
/home/DE/pcourt/dev.sunshine.qua/web/typo3/index.php:24 {▶}
/home/DE/pcourt/dev.sunshine.qua/web/typo3/index.php:25 {▶}

The correct code would be `$hashFactory->get($installToolPassword, 'BE')->checkPassword('joh316', $installToolPassword)` ????

Actions

Also available in: Atom PDF