[FEATURE] Create BE-user in installation wizard with a salted password
[Packages/TYPO3.CMS.git] / typo3 / sysext / install / Classes / Controller / Action / Tool / ImportantActions.php
index ae6134a..fed62ff 100644 (file)
@@ -218,9 +218,7 @@ class ImportantActions extends Action\AbstractAction implements Action\ActionInt
                                $message->setTitle('Administrator user not created');
                                $message->setMessage('A user with username ' . $username . ' exists already.');
                        } else {
-                               $saltFactory = \TYPO3\CMS\Saltedpasswords\Salt\SaltFactory::getSaltingInstance(NULL, 'BE');
-                               $hashedPassword = $saltFactory->getHashedPassword($password);
-
+                               $hashedPassword = $this->getHashedPassword($password);
                                $adminUserFields = array(
                                        'username' => $username,
                                        'password' => $hashedPassword,