2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-21 07:56:03 +00:00

96_allowed.pm: fix crash for basicAuthExpiry (Forum #65629)

git-svn-id: https://svn.fhem.de/fhem/trunk@13219 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-01-24 13:43:25 +00:00
parent 4cd5a12e63
commit f85337c4f4

View File

@ -129,11 +129,11 @@ allowed_Authenticate($$$$)
# generate timestamp according to RFC-1130 in Expires
my $expires = FmtDateTimeRFC1123($time);
readigsBeginUpdate($me);
readingsBeginUpdate($me);
readingsBulkUpdate($me,'lastAuthUser', $user, 1);
readingsBulkUpdate($me,'lastAuthExpires', $time, 1);
readingsBulkUpdate($me,'lastAuthExpiresFmt', $expires, 1);
readigsEndUpdate($me, 1);
readingsEndUpdate($me, 1);
# set header with expiry
$cl->{".httpAuthHeader"} = "Set-Cookie: AuthToken=".$secret.