]> git.wh0rd.org - tt-rss.git/blobdiff - classes/pref/prefs.php
remove some unused code reported by phpmd
[tt-rss.git] / classes / pref / prefs.php
index 671756f08d5afd1055d2f039429c4d11ae362ef0..1fb40a0d669f8210786a3490925243262568bae0 100644 (file)
@@ -887,8 +887,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"));
+
                }
        }