From da99434857533ddce21e89d64a24d3c5f7cd3f31 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 6 Nov 2020 09:49:48 +0100 Subject: [PATCH] Remove legacy auto login remains from AccountManagementForm --- .../files/lib/form/AccountManagementForm.class.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/wcfsetup/install/files/lib/form/AccountManagementForm.class.php b/wcfsetup/install/files/lib/form/AccountManagementForm.class.php index 88a246a47a..2c1df85061 100644 --- a/wcfsetup/install/files/lib/form/AccountManagementForm.class.php +++ b/wcfsetup/install/files/lib/form/AccountManagementForm.class.php @@ -444,14 +444,6 @@ class AccountManagementForm extends AbstractForm { $this->objectAction = new UserAction([WCF::getUser()], 'update', $data); $this->objectAction->executeAction(); - // update cookie - if (isset($_COOKIE[COOKIE_PREFIX.'password']) && isset($updateParameters['password'])) { - // reload user - $user = new User(WCF::getUser()->userID); - - HeaderUtil::setCookie('password', PasswordUtil::getSaltedHash($updateParameters['password'], $user->password), TIME_NOW + 365 * 24 * 3600); - } - if (isset($updateParameters['newEmail']) && isset($updateParameters['reactivationCode'])) { // Use user list to allow overriding of the fields without duplicating logic $userList = new UserList(); -- 2.20.1