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

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

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.