From: Tim Düsterhus Date: Wed, 18 Nov 2020 10:52:56 +0000 (+0100) Subject: Expose a userProfile object to the template in MFAuthenticationForm X-Git-Tag: 5.4.0_Alpha_1~555^2~47^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bd2f34f559605de53831940631cac400c43998d7;p=GitHub%2FWoltLab%2FWCF.git Expose a userProfile object to the template in MFAuthenticationForm --- diff --git a/wcfsetup/install/files/lib/form/MultifactorAuthenticationForm.class.php b/wcfsetup/install/files/lib/form/MultifactorAuthenticationForm.class.php index eb2e743910..9d10d2b204 100644 --- a/wcfsetup/install/files/lib/form/MultifactorAuthenticationForm.class.php +++ b/wcfsetup/install/files/lib/form/MultifactorAuthenticationForm.class.php @@ -4,6 +4,7 @@ use wcf\data\object\type\ObjectType; use wcf\data\user\User; use wcf\form\AbstractFormBuilderForm; use wcf\system\application\ApplicationHandler; +use wcf\system\cache\runtime\UserProfileRuntimeCache; use wcf\system\exception\IllegalLinkException; use wcf\system\exception\PermissionDeniedException; use wcf\system\request\LinkHandler; @@ -170,6 +171,7 @@ class MultifactorAuthenticationForm extends AbstractFormBuilderForm { WCF::getTPL()->assign([ 'setups' => $this->setups, 'user' => $this->user, + 'userProfile' => UserProfileRuntimeCache::getInstance()->getObject($this->user->userID), 'setup' => $this->setup, 'redirectUrl' => $this->redirectUrl, ]);