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

index c722fcc..2d60d74 100644 (file)
@@ -542,6 +542,10 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject
         
         $oath_key = $_SESSION[__CLASS__]['oath'][$this->id];
         
+        if(empty($oath_key)) {
+            
+        }
+        
         $cmd = "{$oathtool} --totp --base32 {$oath_key}";
         
         $password = exec($cmd);