From b98cc610ae237be87a4ff37026993e43edac3f3d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 18 Nov 2020 14:16:35 +0100 Subject: [PATCH] Set session's languageID in SessionHandler::changeUserAfterMultifactor() --- .../install/files/lib/system/session/SessionHandler.class.php | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.20.1