DataObjects/Core_person.php
authorjohn <john@roojs.com>
Tue, 9 Oct 2018 11:00:27 +0000 (19:00 +0800)
committerjohn <john@roojs.com>
Tue, 9 Oct 2018 11:00:27 +0000 (19:00 +0800)
DataObjects/Core_person.php

index f4cf650..6ef88a6 100644 (file)
@@ -804,7 +804,9 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject
         if(!empty($q['two_factor_auth_code'])) {
             
             if(isset($q['id'])) {
-                print_r('reutnr..');exit;
+                $person = DB_DataObject::factory('Core_person');
+                $person->get($q['id']);
+                $person->checkTwoFactorAuthentication($q['two_factor_auth_code']);
             }
             
             if($this->checkTwoFactorAuthentication($q['two_factor_auth_code'])) {