Commit d66297b1 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(usermanager) fix otp qrcode link, solves error on first request.

(cherry picked from commit de5a42e0)
parent 8f08a83c
......@@ -853,7 +853,7 @@ $( document ).ready(function() {
<?php
if (!empty($pconfig['otp_seed'])):
// construct google url, using token, username and this machines hostname
$google_otp_url = "https://www.google.com/chart?chs=200x200&amp;chld=M|0&amp;cht=qr&amp;chl=otpauth://totp/";
$google_otp_url = "https://chart.googleapis.com/chart?chs=200x200&amp;chld=M|0&amp;cht=qr&amp;chl=otpauth://totp/";
$google_otp_url .= $pconfig['usernamefld']."@".htmlspecialchars($config['system']['hostname'])."%3Fsecret%3D";
$google_otp_url .= $pconfig['otp_seed'];
?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment