X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=DataObjects%2FCore_person.php;h=f2f2982c618e60443638744c8d926a0a031e4633;hb=59171aab7dcdb554ab334e2a07a1c34875439326;hp=75db3259e1c56c6d6ba38acd0e3bcb866a73df32;hpb=8bad102e8a64f02a79417dcddb8a607bb78a1fff;p=Pman.Core diff --git a/DataObjects/Core_person.php b/DataObjects/Core_person.php index 75db3259..f2f2982c 100644 --- a/DataObjects/Core_person.php +++ b/DataObjects/Core_person.php @@ -674,16 +674,12 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject $aur['oath_key'] = ''; $aur['oath_key_enable'] = !empty($this->oath_key); + $aur['require_oath'] = 1; $s = DB_DataObject::Factory('core_setting'); $oath_require = $s->lookup('core', 'two_factor_authentication_requirement'); - if(!empty($oath_require)) { - - } - - - $aur['disable_oath'] = (bool)$oath_require ? 1 : 0; + // $aur['require_oath'] = !empty($oath_require) || $oath_require->val == 0 ? 0 : 1; return $aur; }