[FEATURE] Create BE-user in installation wizard with a salted password
[Packages/TYPO3.CMS.git] / typo3 / sysext / install / Classes / Controller / Action / Step / DatabaseData.php
index f914d95..0124d4e 100644 (file)
@@ -67,11 +67,10 @@ class DatabaseData extends Action\AbstractAction implements StepInterface {
                $this->importDatabaseData();
 
                // Insert admin user
-               // Password is simple md5 here for now, will be updated by saltedpasswords on first login
-               // @TODO: Handle saltedpasswords in installer and store password salted in the first place
+               $hashedPassword = $this->getHashedPassword($password);
                $adminUserFields = array(
                        'username' => $username,
-                       'password' => md5($password),
+                       'password' => $hashedPassword,
                        'admin' => 1,
                        'tstamp' => $GLOBALS['EXEC_TIME'],
                        'crdate' => $GLOBALS['EXEC_TIME']