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

index a0dab8c..3f1efec 100644 (file)
@@ -538,9 +538,7 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject
         
         $au = $this->getAuthUser();
         
-        $qrcode = $au->generateQRCode();
-        
-        $cmd = "{$oathtool} --totp --base32 {$this->oath_key}";
+        $cmd = "{$oathtool} --totp --base32 {$au->oath_key}";
         
         $password = exec($cmd);