mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
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:
parent
073627279f
commit
d2f9609b8f
@ -129,11 +129,11 @@ allowed_Authenticate($$$$)
|
|||||||
# generate timestamp according to RFC-1130 in Expires
|
# generate timestamp according to RFC-1130 in Expires
|
||||||
my $expires = FmtDateTimeRFC1123($time);
|
my $expires = FmtDateTimeRFC1123($time);
|
||||||
|
|
||||||
readigsBeginUpdate($me);
|
readingsBeginUpdate($me);
|
||||||
readingsBulkUpdate($me,'lastAuthUser', $user, 1);
|
readingsBulkUpdate($me,'lastAuthUser', $user, 1);
|
||||||
readingsBulkUpdate($me,'lastAuthExpires', $time, 1);
|
readingsBulkUpdate($me,'lastAuthExpires', $time, 1);
|
||||||
readingsBulkUpdate($me,'lastAuthExpiresFmt', $expires, 1);
|
readingsBulkUpdate($me,'lastAuthExpiresFmt', $expires, 1);
|
||||||
readigsEndUpdate($me, 1);
|
readingsEndUpdate($me, 1);
|
||||||
|
|
||||||
# set header with expiry
|
# set header with expiry
|
||||||
$cl->{".httpAuthHeader"} = "Set-Cookie: AuthToken=".$secret.
|
$cl->{".httpAuthHeader"} = "Set-Cookie: AuthToken=".$secret.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user