From: Tim Düsterhus Date: Tue, 14 Jun 2016 20:07:26 +0000 (+0200) Subject: Null password in SendNewPasswordWorker X-Git-Tag: 3.0.0_Beta_1~890^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=67151f322cb7ae2f8ec185cefd9ebae72db89fc1;p=GitHub%2FWoltLab%2FWCF.git Null password in SendNewPasswordWorker --- 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