use wcf\system\cache\runtime\UserProfileRuntimeCache;
use wcf\system\exception\IllegalLinkException;
use wcf\system\exception\PermissionDeniedException;
+use wcf\system\form\builder\TemplateFormNode;
use wcf\system\request\LinkHandler;
use wcf\system\user\multifactor\IMultifactorMethod;
use wcf\system\user\multifactor\Setup;
protected function createForm() {
parent::createForm();
+ $this->form->appendChild(
+ TemplateFormNode::create('loginAs')
+ ->application('wcf')
+ ->templateName('__multifactorAuthenticationLoginAs')
+ );
+
$this->processor->createAuthenticationForm($this->form, $this->setup);
}
$setup = $this->setup->lock();
- $this->returnData = $this->processor->processAuthenticationForm($this->form, $setup);
+ $this->processor->processAuthenticationForm($this->form, $setup);
WCF::getDB()->commitTransaction();