mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
Merge pull request #8085 from nightscout/wip/bewest/api-secret-free-reads
Wip/bewest/api secret free reads
This commit is contained in:
+1
-1
@@ -1146,7 +1146,7 @@ client.load = function load (serverSettings, callback) {
|
||||
}
|
||||
|
||||
console.log('Subscribed for alarms', data);
|
||||
if (!data.success) {
|
||||
if (client.settings.authenticationPromptOnLoad && !data.success) {
|
||||
client.hashauth.requestAuthentication(function afterRequest () {
|
||||
client.hashauth.updateSocketAuth();
|
||||
if (callback) {
|
||||
|
||||
@@ -72,6 +72,7 @@ function init () {
|
||||
, adminNotifiesEnabled: true
|
||||
, obscured: ''
|
||||
, obscureDeviceProvenance: ''
|
||||
, authenticationPromptOnLoad: false
|
||||
};
|
||||
|
||||
var secureSettings = [
|
||||
@@ -111,6 +112,7 @@ function init () {
|
||||
, bgTargetBottom: mapNumber
|
||||
, authFailDelay: mapNumber
|
||||
, adminNotifiesEnabled: mapTruthy
|
||||
, authenticationPromptOnLoad: mapTruthy
|
||||
};
|
||||
|
||||
function filterObj(obj, secureKeys) {
|
||||
|
||||
Generated
+3
-3
@@ -6367,9 +6367,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"nightscout-connect": {
|
||||
"version": "0.0.10",
|
||||
"resolved": "https://registry.npmjs.org/nightscout-connect/-/nightscout-connect-0.0.10.tgz",
|
||||
"integrity": "sha512-4jZG9OcrbBwofEvmz154j0K5U/WxWlZ3gVvPNZelSP5fwXVPfZvnivgjg6k8dPoxDErTqvBcmOC9IeMv5ydosw==",
|
||||
"version": "0.0.11",
|
||||
"resolved": "https://registry.npmjs.org/nightscout-connect/-/nightscout-connect-0.0.11.tgz",
|
||||
"integrity": "sha512-O7wMMG6BgW7Wxm0hr4Fj9SO1IH/7f29obKSnN8V9I2Ko4v5XxL5FqoONpmvlgI6So0MwksoMCcedSCiCL6Lj4A==",
|
||||
"requires": {
|
||||
"axios": "^1.3.4",
|
||||
"axios-cookiejar-support": "^4.0.6",
|
||||
|
||||
+1
-1
@@ -116,7 +116,7 @@
|
||||
"mongo-url-parser": "^1.0.2",
|
||||
"mongodb": "^3.6.0",
|
||||
"mongomock": "^0.1.2",
|
||||
"nightscout-connect": "0.0.10",
|
||||
"nightscout-connect": "^0.0.11",
|
||||
"node-cache": "^4.2.1",
|
||||
"parse-duration": "^0.1.3",
|
||||
"process": "^0.11.10",
|
||||
|
||||
Reference in New Issue
Block a user