use wcf\system\exception\UserInputException;
use wcf\system\menu\user\UserMenu;
use wcf\system\WCF;
-use wcf\util\HeaderUtil;
use wcf\util\JSON;
-use wcf\util\PasswordUtil;
use wcf\util\StringUtil;
use wcf\util\UserRegistrationUtil;
use wcf\util\UserUtil;
use wcf\system\user\notification\event\ITestableUserNotificationEvent;
use wcf\system\SingletonFactory;
use wcf\system\WCF;
-use wcf\util\PasswordUtil;
use wcf\util\StringUtil;
/**
'data' => [
'email' => $username . '@example.com',
'languageID' => $languages[array_rand($languages)]->languageID,
- 'password' => PasswordUtil::getRandomPassword(),
+ 'password' => \bin2hex(\random_bytes(16)),
'registrationDate' => TIME_NOW - 24 * 3600 * random_int(10, 1000),
'username' => $username
]