mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-09 20:57:11 +00:00
38_netatmo: fixed csrf error on home notification settings
git-svn-id: https://svn.fhem.de/fhem/trunk@26137 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
3a3c306cb8
commit
c5d5d3ad48
@ -1,5 +1,6 @@
|
||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||
# Do not insert empty lines here, update check depends on it.
|
||||
- bugfix: 38_netatmo: fixed csrf error on home notification settings
|
||||
- bugfix: 10_SOMFY: Correct match for long commands according to #msg1224029
|
||||
- bugfix: 70_Klafs: Start time error fixed
|
||||
- bugfix: 70_Klafs: minor bugfix for Reading power
|
||||
|
@ -11,7 +11,7 @@
|
||||
#
|
||||
#
|
||||
##############################################################################
|
||||
# Release 25 / 2022-03-2
|
||||
# Release 26 / 2022-06-08
|
||||
|
||||
package main;
|
||||
|
||||
@ -2275,7 +2275,7 @@ netatmo_setNotifications($$$)
|
||||
if( !defined($iohash->{csrf_token}) )
|
||||
{
|
||||
my($err0,$data0) = HttpUtils_BlockingGet({
|
||||
url => "https://auth.netatmo.com/en-us/access/login",
|
||||
url => "https://auth.netatmo.com/access/csrf",
|
||||
timeout => 10,
|
||||
noshutdown => 1,
|
||||
});
|
||||
@ -2285,7 +2285,7 @@ netatmo_setNotifications($$$)
|
||||
return undef;
|
||||
}
|
||||
#Log3 $name, 1, "$name: CSRF\n".$data0;
|
||||
$data0 =~ /csrf-token" content="(.*)"/;
|
||||
$data0 =~ /{"token":"(.*)"}/;
|
||||
my $tmptoken = $1;
|
||||
$iohash->{csrf_token} = $tmptoken;
|
||||
if(!defined($iohash->{csrf_token})) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user