{include file='header' __disableAds=true __sidebarLeftHasMenu=true}
+<section class="section">
+ <h2 class="sectionTitle">{lang}wcf.user.security.multifactor{/lang}</h2>
+
+ <ul class="containerList">
+ {foreach from=$multifactorMethods item=method}
+ <li class="box64">
+ <div>
+ <span class="icon icon64 fa-{if $method->icon}{$method->icon}{else}lock{/if}"></span>
+ </div>
+
+ <div>
+ <div class="containerHeadline">
+ <h3>{lang}wcf.user.security.multifactor.{$method->objectType}{/lang}</h3>
+
+ {$method|var_dump}
+ </div>
+ </div>
+ </li>
+ {/foreach}
+ </ul>
+</section>
+
<section class="section">
<h2 class="sectionTitle">{lang}wcf.user.security.activeSessions{/lang}</h2>
<?php
namespace wcf\page;
+use wcf\data\object\type\ObjectType;
+use wcf\data\object\type\ObjectTypeCache;
use wcf\system\menu\user\UserMenu;
use wcf\system\session\Session;
use wcf\system\session\SessionHandler;
/**
* Shows the account security page.
*
- * @author Joshua Ruesweg
+ * @author Tim Duesterhus, Joshua Ruesweg
* @copyright 2001-2020 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Page
*/
private $activeSessions;
+ /**
+ * @var ObjectType[]
+ */
+ private $multifactorMethods;
+
/**
* @inheritDoc
*/
usort($this->activeSessions, function ($a, $b) {
return $b->getLastActivityTime() <=> $a->getLastActivityTime();
});
+
+ $this->multifactorMethods = ObjectTypeCache::getInstance()->getObjectTypes('com.woltlab.wcf.multifactor');
}
/**
parent::assignVariables();
WCF::getTPL()->assign([
- 'activeSessions' => $this->activeSessions
+ 'activeSessions' => $this->activeSessions,
+ 'multifactorMethods' => $this->multifactorMethods,
]);
}