From: Andrew Dolgov Date: Sat, 18 Jan 2014 20:29:42 +0000 (+0400) Subject: otp: use application name in provisioning uri X-Git-Tag: 1.12~119 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ab85ad89b33b14f30fce17bdfa25877e0d72833e;p=tt-rss.git otp: use application name in provisioning uri --- diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index 671756f0..3e7d467f 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -888,7 +888,9 @@ class Pref_Prefs extends Handler_Protected { if (!$otp_enabled) { $secret = $base32->encode(sha1($this->dbh->fetch_result($result, 0, "salt"))); $topt = new \OTPHP\TOTP($secret); - print QRcode::png($topt->provisioning_uri($login)); + print QRcode::png("otpauth://totp/".urlencode($login). + "?secret=$secret&issuer=".urlencode("Tiny Tiny RSS")); + } }