mirror of https://github.com/SeanOMik/znc-push.git
URL service: enable HTTP basic auth if either username or secret is set
Update documentation accordingly.
This commit is contained in:
parent
5b960484eb
commit
c73f4d55be
|
@ -236,8 +236,8 @@ to something similar to "http://domain/#channel/2011-03-09 14:25:09", or
|
||||||
|
|
||||||
This option must be set when using Boxcar or Pushover.
|
This option must be set when using Boxcar or Pushover.
|
||||||
|
|
||||||
When using the custom URL service, if this option is set it will be used as username
|
When using the custom URL service, if this option is set it will enable HTTP basic
|
||||||
for HTTP basic authentication.
|
authentication and be used as username.
|
||||||
|
|
||||||
* `secret = ""`
|
* `secret = ""`
|
||||||
|
|
||||||
|
@ -245,8 +245,8 @@ to something similar to "http://domain/#channel/2011-03-09 14:25:09", or
|
||||||
|
|
||||||
This option must be set when using Notify My Android, Pushover, Prowl, Supertoasty or PushBullet.
|
This option must be set when using Notify My Android, Pushover, Prowl, Supertoasty or PushBullet.
|
||||||
|
|
||||||
When using the custom URL service, if this option is set it will be used as password
|
When using the custom URL service, if this option is set it will enable HTTP basic
|
||||||
for HTTP basic authentication.
|
authentication and be used as password.
|
||||||
|
|
||||||
* `target = ""`
|
* `target = ""`
|
||||||
|
|
||||||
|
|
2
push.cpp
2
push.cpp
|
@ -476,7 +476,7 @@ class CPushMod : public CModule
|
||||||
}
|
}
|
||||||
|
|
||||||
// HTTP basic auth
|
// HTTP basic auth
|
||||||
if(options["username"] != "")
|
if(options["username"] != "" || options["secret"] != "")
|
||||||
{
|
{
|
||||||
service_auth = options["username"] + CString(":") + options["secret"];
|
service_auth = options["username"] + CString(":") + options["secret"];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue