From: edward Date: Thu, 2 Nov 2017 11:50:32 +0000 (+0800) Subject: DataObjects/Core_person.php X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=e6258adad36c356eeffa48b8290b78a685b148dc;p=Pman.Core DataObjects/Core_person.php --- diff --git a/DataObjects/Core_person.php b/DataObjects/Core_person.php index 64a65883..60a0525f 100644 --- a/DataObjects/Core_person.php +++ b/DataObjects/Core_person.php @@ -1345,7 +1345,7 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject $issuer = (empty($this->name)) ? rawurlencode('ROOJS') : rawurlencode($this->name); - $uri = "otpauth://totp/ACME%20Co:{$this->email}?secret={$this->oath_key}&issuer=ACME%20Co&algorithm=SHA1&digits=6&period=30"; + $uri = "otpauth://totp/{$issuer}:{$this->email}?secret={$this->oath_key}&issuer={$issuer}&algorithm=SHA1&digits=6&period=30"; $base64 = base64_encode(file_get_contents("https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl={$uri}"));