DataObjects/Core_person.php
authorjohn <john@roojs.com>
Wed, 10 Oct 2018 04:30:38 +0000 (12:30 +0800)
committerjohn <john@roojs.com>
Wed, 10 Oct 2018 04:30:38 +0000 (12:30 +0800)
DataObjects/Core_person.php

index cca622e..e20ae82 100644 (file)
@@ -800,12 +800,8 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject
         
         if(!empty($q['two_factor_auth_code'])) {
             
-            $person = $this;
-            
-            if(isset($q['id'])) {
-                $person = DB_DataObject::factory('core_person');
-                $person->get($q['id']);
-            }
+            $person = DB_DataObject::factory('core_person');
+            $person->get($q['id']);
             
             if($person->checkTwoFactorAuthentication($q['two_factor_auth_code'])) {
                 $roo->jok('DONE');