From 4aee96decb5675c13d4c3c31dcb11a019974ef76 Mon Sep 17 00:00:00 2001 From: betateilchen <> Date: Sun, 15 Jan 2017 15:59:03 +0000 Subject: [PATCH] 98_GoogleAuth.pm: issuer=FHEM added to qr-code git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@13092 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/98_GoogleAuth.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/FHEM/98_GoogleAuth.pm b/FHEM/98_GoogleAuth.pm index 5c43db5a0..27ad175c4 100644 --- a/FHEM/98_GoogleAuth.pm +++ b/FHEM/98_GoogleAuth.pm @@ -64,6 +64,8 @@ # added: commandref documentation EN # # 2017-01-15 - published to FHEM +# fixed: problem on iOS if label contains spaces +# added: issuer=FHEM # =cut @@ -193,7 +195,7 @@ sub _ga_make_url($) { my $qrsize = AttrVal($name,'ga_qrSize','200x200'); my $secret_base32 = getKeyValue("googleAuth$name"); return undef unless defined($secret_base32); - my $url = "otpauth://totp/$label?secret=$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="; $qr_url .= uri_escape($url); return $qr_url;