From aab53d80310f98ec8f03111c639b960ff7d84b3f Mon Sep 17 00:00:00 2001 From: betateilchen Date: Sun, 15 Jan 2017 00:24:47 +0000 Subject: [PATCH] 98_GoogleAuth.pm: under development - attribute ga_labelName added git-svn-id: https://svn.fhem.de/fhem/trunk@13076 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/98_GoogleAuth.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fhem/contrib/98_GoogleAuth.pm b/fhem/contrib/98_GoogleAuth.pm index 16d2d9d61..3e3dd94c8 100644 --- a/fhem/contrib/98_GoogleAuth.pm +++ b/fhem/contrib/98_GoogleAuth.pm @@ -22,6 +22,7 @@ sub GoogleAuth_Initialize($) { $hash->{FW_detailFn} = "GoogleAuth_Detail"; # $hash->{AttrFn} = "GoogleAuth_Attr"; $hash->{AttrList} = "ga_qrsize ". + "ga_labelName ". "$readingFnAttributes"; } @@ -55,7 +56,7 @@ sub GoogleAuth_Set($$@) { setKeyValue("googleAuth$name",$secret_base32); # write to fhem keystore - my $label = "FHEM%20Authentication%20$name"; + my $label = AttrVal($name,'ga_labelName',"FHEM Authentication $name"); my $qrsize = AttrVal($name,'ga_qrsize','200x200'); my $url = "otpauth://totp/$label?secret=$secret_base32"; my $qr_url = "https://chart.googleapis.com/chart?cht=qr&chs=$qrsize"."&chl=".uri_escape($url);