DataObjects/Core_person.php
authorjohn <john@roojs.com>
Thu, 11 Oct 2018 05:07:11 +0000 (13:07 +0800)
committerjohn <john@roojs.com>
Thu, 11 Oct 2018 05:07:11 +0000 (13:07 +0800)
DataObjects/Core_person.php

index f2f2982..c673992 100644 (file)
@@ -679,6 +679,10 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject
         $s = DB_DataObject::Factory('core_setting');
         $oath_require = $s->lookup('core', 'two_factor_authentication_requirement');
         
+        if(!empty($oath_require) && $oath_require->val == 0) {
+            $aur['require_oath'] = 0;
+        } 
+        
         // $aur['require_oath'] =  !empty($oath_require) || $oath_require->val == 0 ? 0 : 1;
         
         return $aur;