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

index 8792c90..bea9a90 100644 (file)
@@ -784,7 +784,12 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject
         }
         
         if(!empty($q['two_factor_auth_code'])) {
-            $this->checkTwoFactorAuthentication($q['two_factor_auth_code']);
+            
+            if($this->checkTwoFactorAuthentication($q['two_factor_auth_code'])) {
+                $this->jok('DONE');
+            }
+            
+            $this->jerr('_invalid_auth_code');
         }
         
         if (!empty($q['query']['is_owner'])) {