From 67151f322cb7ae2f8ec185cefd9ebae72db89fc1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 14 Jun 2016 22:07:26 +0200 Subject: [PATCH] Null password in SendNewPasswordWorker --- .../files/lib/system/worker/SendNewPasswordWorker.class.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/system/worker/SendNewPasswordWorker.class.php b/wcfsetup/install/files/lib/system/worker/SendNewPasswordWorker.class.php index 8955844f61..7e53f2e2d9 100644 --- a/wcfsetup/install/files/lib/system/worker/SendNewPasswordWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/SendNewPasswordWorker.class.php @@ -78,16 +78,15 @@ class SendNewPasswordWorker extends AbstractWorker { * @param \wcf\data\user\UserEditor $userEditor */ protected function sendNewPassword(UserEditor $userEditor) { - $newPassword = PasswordUtil::getRandomPassword((REGISTER_PASSWORD_MIN_LENGTH > 12 ? REGISTER_PASSWORD_MIN_LENGTH : 12)); - $userAction = new UserAction([$userEditor], 'update', [ 'data' => [ - 'password' => $newPassword + 'password' => null ] ]); $userAction->executeAction(); // send mail + // TODO: Send link $mail = new Mail([$userEditor->username => $userEditor->email], $userEditor->getLanguage()->getDynamicVariable('wcf.acp.user.sendNewPassword.mail.subject'), $userEditor->getLanguage()->getDynamicVariable('wcf.acp.user.sendNewPassword.mail', [ 'password' => $newPassword, 'username' => $userEditor->username -- 2.20.1