DataObjects/Core_person.php
authorjohn <john@roojs.com>
Wed, 10 Oct 2018 08:16:23 +0000 (16:16 +0800)
committerjohn <john@roojs.com>
Wed, 10 Oct 2018 08:16:23 +0000 (16:16 +0800)
DataObjects/Core_person.php

index 7f38e8c..4ad1289 100644 (file)
@@ -809,7 +809,10 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject
             $person = DB_DataObject::factory('core_person');
             $person->get($q['id']);
             
-            if($person->checkTwoFactorAuthentication($q['two_factor_auth_code'])) {
+            if($person->checkTwoFactorAuthentication(
+                $q['two_factor_auth_code'],
+                $oath_key
+            )) {
                 
                 $o = clone($person);
                 $person->oath_key = $_SESSION[__CLASS__]['oath'][$person->id];