mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
98_GoogleAuth.pm: use new api url
git-svn-id: https://svn.fhem.de/fhem/trunk@29115 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
4f4045f484
commit
2aa184b31a
@ -74,6 +74,8 @@
|
||||
#
|
||||
# 2021-01-26 - changed: rework code to use own package
|
||||
#
|
||||
# 2024-08-28 - changed: use new api url
|
||||
#
|
||||
=cut
|
||||
|
||||
package FHEM::GoogleAuth; ## no critic
|
||||
@ -222,7 +224,8 @@ sub _ga_make_url {
|
||||
my $secret_base32 = getKeyValue("googleAuth$name");
|
||||
return unless defined($secret_base32);
|
||||
my $url = "otpauth://totp/$label?secret=$secret_base32&issuer=FHEM";
|
||||
my $qr_url = "https://chart.googleapis.com/chart?cht=qr&chs=$qrsize"."&chl=";
|
||||
#my $qr_url = "https://chart.googleapis.com/chart?cht=qr&chs=$qrsize"."&chl=";
|
||||
my $qr_url = "https://quickchart.io/chart?cht=qr&chs=$qrsize"."&chl="; #msg=1319182
|
||||
$qr_url .= uri_escape($url);
|
||||
return $qr_url;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user