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