From: joshuaruesweg Date: Fri, 4 Dec 2020 13:10:23 +0000 (+0100) Subject: Fix resetting user sessions when editing users via ACP X-Git-Tag: 5.4.0_Alpha_1~565 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cf913374ab26a593a317f971eeda8b036eefcbca;p=GitHub%2FWoltLab%2FWCF.git Fix resetting user sessions when editing users via ACP Fixes #3780 --- diff --git a/wcfsetup/install/files/lib/data/user/UserAction.class.php b/wcfsetup/install/files/lib/data/user/UserAction.class.php index c13eb933cb..881bfda5cb 100644 --- a/wcfsetup/install/files/lib/data/user/UserAction.class.php +++ b/wcfsetup/install/files/lib/data/user/UserAction.class.php @@ -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);