Commit 27384fa8 authored by Stefan Busemann's avatar Stefan Busemann
Browse files

[BUGFIX] Use generateRandomHexString for password creation

parent 0b8e65c7
......@@ -52,7 +52,7 @@ class ReactivateUserHook implements \TYPO3\CMS\Backend\RecordList\RecordListGetT
$frontendUser->setUsername($oldUser->getUsername());
$frontendUser->setEmail($oldUser->getEmail());
$frontendUser->setName($oldUser->getUsername());
$frontendUser->setPassword($random->generateRandomBytes(20));
$frontendUser->setPassword($random->generateRandomHexString(20));
$frontendUser->addUsergroup($userGroupRepository->findByUid(1));
$frontendUser->setPid(5);
$userRepository->add($frontendUser);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment