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;
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
return $authString;
|
||||
@ -220,6 +220,8 @@ sub NTFY_Publish_Msg
|
||||
$message->{priority} = $msg->{priority};
|
||||
}
|
||||
|
||||
|
||||
|
||||
NTFY_LOG(LOG_DEBUG, "Publish:" . Dumper($message));
|
||||
my $param = {
|
||||
url => $url,
|
||||
|
Loading…
Reference in New Issue
Block a user