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

index ecc1cd7..8578462 100644 (file)
@@ -776,16 +776,14 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject
             
             $au = $this->getAuthUser();
             
-            $au->generateOathKey();
-            
             $o = clone($au);
             
+            $au->generateOathKey();
+            
             $au->update($o);
             
             $qrcode = $au->generateQRCode();
             
-            $this->update($o);
-            
             if(empty($qrcode)){
                 $roo->jerr('Fail to generate QR Code');
             }