DataObjects/Core_person.php
authorjohn <john@roojs.com>
Tue, 9 Oct 2018 09:42:40 +0000 (17:42 +0800)
committerjohn <john@roojs.com>
Tue, 9 Oct 2018 09:42:40 +0000 (17:42 +0800)
DataObjects/Core_person.php

index 01a953b..a1bc13f 100644 (file)
@@ -540,11 +540,10 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject
         
         if(empty($this->id)) {
             $au = $this->getAuthUser();
+            $oath_key = $au->oath_key;
         }
         
-        
-        
-        $cmd = "{$oathtool} --totp --base32 {$au->oath_key}";
+        $cmd = "{$oathtool} --totp --base32 {$oath_key}";
         
         $password = exec($cmd);