mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
(usermanager) fix otp qrcode link, solves error on first request.
This commit is contained in:
parent
17f656da41
commit
de5a42e059
@ -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&chld=M|0&cht=qr&chl=otpauth://totp/";
|
||||
$google_otp_url = "https://chart.googleapis.com/chart?chs=200x200&chld=M|0&cht=qr&chl=otpauth://totp/";
|
||||
$google_otp_url .= $pconfig['usernamefld']."@".htmlspecialchars($config['system']['hostname'])."%3Fsecret%3D";
|
||||
$google_otp_url .= $pconfig['otp_seed'];
|
||||
?>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user