From 3ad0a6dee5862e16bb6e4275dc8553244dc0c5e6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 8 Jan 2021 15:54:37 +0100 Subject: [PATCH] Remove logic to set the preferred username in ACP's login By the removal of the session separation this will always be empty (otherwise the user would already be logged in). --- .../files/lib/acp/form/LoginForm.class.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/wcfsetup/install/files/lib/acp/form/LoginForm.class.php b/wcfsetup/install/files/lib/acp/form/LoginForm.class.php index 8aee2cfea3..a1ab4f6dca 100755 --- a/wcfsetup/install/files/lib/acp/form/LoginForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LoginForm.class.php @@ -235,24 +235,6 @@ class LoginForm extends AbstractCaptchaForm { exit; } - /** - * @inheritDoc - */ - public function readData() { - parent::readData(); - - // get preferred username - if (empty($_POST)) { - $cookieData = SessionHandler::getInstance()->getParsedCookieData(false); - if (isset($cookieData['userId'])) { - $user = new User($cookieData['userId']); - if ($user->userID) { - $this->username = $user->username; - } - } - } - } - /** * @inheritDoc */ -- 2.20.1