Set session's languageID in SessionHandler::changeUserAfterMultifactor()
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 18 Nov 2020 13:16:35 +0000 (14:16 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 18 Nov 2020 13:16:35 +0000 (14:16 +0100)
wcfsetup/install/files/lib/system/session/SessionHandler.class.php

index b63944f2a22c90c94bddae98e484c760768af443..cf677051f6eb88ff2ee08c55273c754a082f79cd 100644 (file)
@@ -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;
                }