DataObjects/Core_person.php
[Pman.Core] / DataObjects / Core_person.php
index b94b47e..e750127 100644 (file)
@@ -1337,9 +1337,9 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject
             return false;
         }
         
-        $uri = "otpauth://totp/ACME%20Co:{$this->email}?secret={$this->oath_key}&issuer=ACME%20Co&algorithm=SHA1&digits=6&period=30"
+        $uri = "otpauth://totp/ACME%20Co:{$this->email}?secret={$this->oath_key}&issuer=ACME%20Co&algorithm=SHA1&digits=6&period=30";
         
-        $base64 = base64_encode(file_get_contents("https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl={$this->oath_key}"));
+        $base64 = base64_encode(file_get_contents("https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl={$uri}"));
         
         return "data:image/png;base64,{$base64}";
     }