Minor changes I forgot to commit previously
This commit is contained in:
@@ -61,7 +61,11 @@ namespace NightScout
|
||||
|
||||
public virtual void Authorize()
|
||||
{
|
||||
JObject authRequest = new JObject {{"client", "web"}};
|
||||
JObject authRequest;
|
||||
if (!String.IsNullOrEmpty(NightscoutAlertConfiguration.APISecretKey))
|
||||
authRequest = new JObject { { "client", "web" }, { "secret", NightscoutAlertConfiguration.APISecretKey } };
|
||||
else
|
||||
authRequest = new JObject { { "client", "web" } };
|
||||
|
||||
Socket.Emit("authorize", authRequest);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user