From: Tim Düsterhus Date: Wed, 18 Nov 2020 13:16:35 +0000 (+0100) Subject: Set session's languageID in SessionHandler::changeUserAfterMultifactor() X-Git-Tag: 5.4.0_Alpha_1~555^2~47^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b98cc610ae237be87a4ff37026993e43edac3f3d;p=GitHub%2FWoltLab%2FWCF.git Set session's languageID in SessionHandler::changeUserAfterMultifactor() --- diff --git a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php index b63944f2a2..cf677051f6 100644 --- a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php +++ b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php @@ -706,6 +706,7 @@ final class SessionHandler extends SingletonFactory { public function changeUserAfterMultifactor(User $user): bool { if ($user->multifactorActive) { $this->register(self::CHANGE_USER_AFTER_MULTIFACTOR_KEY, $user->userID); + $this->setLanguageID($user->languageID); return true; }