Null password in SendNewPasswordWorker
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 14 Jun 2016 20:07:26 +0000 (22:07 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 29 Jul 2016 20:47:22 +0000 (22:47 +0200)
wcfsetup/install/files/lib/system/worker/SendNewPasswordWorker.class.php

index 8955844f61d4b335b787349668ff9073e2b1b76a..7e53f2e2d93b794bba8a5b20e42be104a32eea6c 100644 (file)
@@ -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