Remove check for 'userID' cookie in RescueModeForm
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 18 Jun 2021 11:51:24 +0000 (13:51 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 18 Jun 2021 11:51:24 +0000 (13:51 +0200)
wcfsetup/install/files/lib/acp/form/RescueModeForm.class.php

index d8d102b0fa653f2fe364f1242e39800d0f99db40..c3476d6d97342114a99099fa90ba1d0dfa2da39e 100644 (file)
@@ -334,15 +334,7 @@ class RescueModeForm extends AbstractCaptchaForm
     {
         parent::readData();
 
-        // get preferred username
         if (empty($_POST)) {
-            if (isset($_COOKIE[COOKIE_PREFIX . 'userID'])) {
-                $user = new User(\intval($_COOKIE[COOKIE_PREFIX . 'userID']));
-                if ($user->userID) {
-                    $this->username = $user->username;
-                }
-            }
-
             foreach ($this->applications as $application) {
                 $this->applicationValues[$application->packageID] = [
                     'domainName' => $application->domainName,