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

index aa7040e..6637d1c 100644 (file)
@@ -804,15 +804,12 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject
         if(!empty($q['two_factor_auth_code'])) {
             
             $person = DB_DataObject::factory('core_person');
-            
             $person->get($q['id']);
             
             if($person->checkTwoFactorAuthentication($q['two_factor_auth_code'])) {
                 
                 $o = clone($person);
-                
                 $person->oath_key = $_SESSION[__CLASS__]['oath'][$person->id];
-                
                 $person->update($o);
                 
                 unset($_SESSION[__CLASS__]['oath'][$person->id]);