Remove legacy auto login remains from AccountManagementForm
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 6 Nov 2020 08:49:48 +0000 (09:49 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 6 Nov 2020 08:50:23 +0000 (09:50 +0100)
wcfsetup/install/files/lib/form/AccountManagementForm.class.php

index 88a246a47a35ba14de4272b6338a8e37a07e59ac..2c1df8506189dde29bad6764f66f07d2e48af250 100644 (file)
@@ -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();