Fix resetting user sessions when editing users via ACP
authorjoshuaruesweg <ruesweg@woltlab.com>
Fri, 4 Dec 2020 13:10:23 +0000 (14:10 +0100)
committerjoshuaruesweg <ruesweg@woltlab.com>
Fri, 4 Dec 2020 13:10:32 +0000 (14:10 +0100)
Fixes #3780

wcfsetup/install/files/lib/data/user/UserAction.class.php

index c13eb933cbd07b9889f49a81f13b311216efffcc..881bfda5cbae94fa8e8033adcc7fc5f09d019e98 100644 (file)
@@ -328,7 +328,7 @@ class UserAction extends AbstractDatabaseObjectAction implements IClipboardActio
                                }
                        }
                        
-                       if (array_key_exists('password', $this->parameters['data'])) {
+                       if (array_key_exists('password', $this->parameters['data']) && $this->parameters['data']['password'] !== '') {
                                foreach ($this->getObjects() as $object) {
                                        SessionHandler::getInstance()->deleteUserSessionsExcept($object->getDecoratedObject(), SessionHandler::getInstance()->sessionID);
                                        SessionHandler::getInstance()->deleteAcpSessionsExcept($object->getDecoratedObject(), SessionHandler::getInstance()->sessionID);