FIX: fixed authentication in non container environments
FIXES: #18 Notified by Hartmut
This commit is contained in:
parent
2d613ea87e
commit
d70e2d118a
@ -93,9 +93,9 @@ sub NFTY_Calc_Auth_Token
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
my $auth=encode_base64($username.":".$password);
|
my $auth=encode_base64($username.":".$password, "");
|
||||||
|
|
||||||
my $authString = encode_base64("Basic " . $auth);
|
my $authString = encode_base64("Basic " . $auth, "");
|
||||||
$authString =~ s/=//g;
|
$authString =~ s/=//g;
|
||||||
|
|
||||||
return $authString;
|
return $authString;
|
||||||
@ -220,6 +220,8 @@ sub NTFY_Publish_Msg
|
|||||||
$message->{priority} = $msg->{priority};
|
$message->{priority} = $msg->{priority};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
NTFY_LOG(LOG_DEBUG, "Publish:" . Dumper($message));
|
NTFY_LOG(LOG_DEBUG, "Publish:" . Dumper($message));
|
||||||
my $param = {
|
my $param = {
|
||||||
url => $url,
|
url => $url,
|
||||||
|
Loading…
Reference in New Issue
Block a user