From 27da4c7382d49100442a01f78b940924f9f4889f Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Mon, 31 Jul 2017 16:59:53 +0200 Subject: [PATCH] Fix creation if additional test notification authors See #2359 --- .../notification/TestableUserNotificationEventHandler.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wcfsetup/install/files/lib/system/user/notification/TestableUserNotificationEventHandler.class.php b/wcfsetup/install/files/lib/system/user/notification/TestableUserNotificationEventHandler.class.php index 9da1f30ce2..4acf40cd5c 100644 --- a/wcfsetup/install/files/lib/system/user/notification/TestableUserNotificationEventHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/TestableUserNotificationEventHandler.class.php @@ -17,6 +17,7 @@ use wcf\system\user\notification\event\ITestableUserNotificationEvent; use wcf\system\SingletonFactory; use wcf\system\WCF; use wcf\util\MathUtil; +use wcf\util\PasswordUtil; use wcf\util\StringUtil; /** @@ -73,6 +74,7 @@ class TestableUserNotificationEventHandler extends SingletonFactory { (new UserAction([], 'create', [ 'data' => [ 'email' => $username . '@example.com', + 'password' => PasswordUtil::getRandomPassword(), 'registrationDate' => TIME_NOW - 24 * 3600 * MathUtil::getRandomValue(10, 1000), 'username' => $username ] -- 2.20.1