mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Fix to use new API for remote QR code generation
https://forum.virtualmin.com/t/two-factor-authenticator-is-missing-google-option/132766/14?u=ilia
This commit is contained in:
@@ -235,8 +235,8 @@ if (&can_generate_qr()) {
|
||||
}
|
||||
}
|
||||
else {
|
||||
$url = "https://chart.googleapis.com/chart".
|
||||
"?chs=200x200&cht=qr&chl=".&urlize($str);
|
||||
$url = "https://api.qrserver.com/v1/create-qr-code/?".
|
||||
"size=200x200&data=".&urlize($str);
|
||||
}
|
||||
my $rv;
|
||||
$rv .= &text('twofactor_qrcode', "<tt>$user->{'twofactor_id'}</tt>")."<p>\n";
|
||||
|
||||
Reference in New Issue
Block a user