32_withings: fixed login params

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@21235 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
moises 2020-02-20 08:03:47 +00:00
parent ac7336f94f
commit c360ed2945

View File

@ -1,4 +1,4 @@
############################################################################## ##############################################################################
# $Id$ # $Id$
# #
# 32_withings.pm # 32_withings.pm
@ -755,11 +755,11 @@ sub withings_getSessionKey($) {
# } # }
my $datahash = { my $datahash = {
url => $hash->{'.https'}."://account.withings.com/connectionwou/account_login?r=https://healthmate.withings.com/", url => "https://account.withings.com/connectionwou/account_login?r=https://healthmate.withings.com/",
timeout => 10, timeout => 10,
noshutdown => 1, noshutdown => 1,
ignoreredirects => 1, ignoreredirects => 1,
data => { email=> withings_decrypt($hash->{helper}{username}), password => withings_decrypt($hash->{helper}{password}), is_admin => 'f' }, data => { email=> withings_decrypt($hash->{helper}{username}), password => withings_decrypt($hash->{helper}{password}), is_admin => 'f', use_2fa => '' },
}; };
my($err,$data) = HttpUtils_BlockingGet($datahash); my($err,$data) = HttpUtils_BlockingGet($datahash);