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

index 9f39f3a..488b06b 100644 (file)
@@ -794,11 +794,9 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject
             
             $person = DB_DataObject::factory('core_person');
             $person->get($q['id']);
+            $person->oath_key = $_SESSION[__CLASS__]['oath'][$person->id];
             
-            if($person->checkTwoFactorAuthentication(
-                $q['two_factor_auth_code'],
-                $_SESSION[__CLASS__]['oath'][$person->id]
-            )) {
+            if($person->checkTwoFactorAuthentication($q['two_factor_auth_code'])) {
                 
                 $o = clone($person);
                 $person->oath_key = $_SESSION[__CLASS__]['oath'][$person->id];