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

index 88e6ab8..7b71f3c 100644 (file)
@@ -778,9 +778,11 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject
             $hash = $this->generateOathKey();
             
             $_SESSION[__CLASS__] = 
-                isset($_SESSION[__CLASS__]) ? $_SESSION[__CLASS__] : array();
+                isset($_SESSION[__CLASS__]) ? 
+                    $_SESSION[__CLASS__] : array();
             $_SESSION[__CLASS__]['oath'] = 
-                isset($_SESSION[__CLASS__]['oath']) ? $_SESSION[__CLASS__]['oath'] : array();
+                isset($_SESSION[__CLASS__]['oath']) ? 
+                    $_SESSION[__CLASS__]['oath'] : array();
                 
             $_SESSION[__CLASS__]['oath'][$person->id] = $hash;
 
@@ -794,7 +796,6 @@ 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']);
             $o = clone($person);