{
// also used in login
+ return true;
+
require_once 'System.php';
if(
$aur['oath_key_enable'] = !empty($this->oath_key);
$s = DB_DataObject::Factory('core_setting');
- $aur['disable_oath'] = (bool) $s->lookup('core', 'two_factor_authentication') ? 1 : 0;
+ $oath_require = $s->lookup('core', 'two_factor_authentication_requirement');
+
+ if(!empty($oath_require)) {
+
+ }
+
+
+ $aur['require_oath'] = (bool)$oath_require ? 1 : 0;
return $aur;
}