daveappserver 0.7.8 → 0.7.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/appserver.js +11 -5
  2. package/package.json +2 -2
package/appserver.js CHANGED
@@ -1,4 +1,4 @@
1
- var myVersion = "0.7.8", myProductName = "daveAppServer";
1
+ var myVersion = "0.7.9", myProductName = "daveAppServer";
2
2
 
3
3
  exports.start = startup;
4
4
  exports.notifySocketSubscribers = notifySocketSubscribers;
@@ -71,6 +71,8 @@ var config = {
71
71
 
72
72
  flUseDatabaseForConfirmations: false, //8/14/23 by DW
73
73
 
74
+ flAllowWordpressIdentity: true, //10/31/23 by DW
75
+
74
76
  isUserInDatabase: function (screenname, callback) { //2/6/23 by DW
75
77
  callback (false);
76
78
  },
@@ -90,7 +92,6 @@ var stats = {
90
92
  };
91
93
  const fnameStats = "stats.json";
92
94
 
93
-
94
95
  function userIsWhitelisted (screenname, callback) { //9/16/22 by DW
95
96
  fs.readFile (fnameConfig, function (err, jsontext) {
96
97
  var flWhitelisted = false;
@@ -1299,9 +1300,14 @@ function cleanFileStats (stats) { //4/19/21 by DW
1299
1300
  }
1300
1301
  });
1301
1302
  }
1302
- const options = {
1303
- useWordpressAccount
1304
- };
1303
+
1304
+ var options = undefined;
1305
+ if (config.flAllowWordpressIdentity) {
1306
+ options = {
1307
+ useWordpressAccount
1308
+ };
1309
+ }
1310
+
1305
1311
  const flHandled = wordpress.handleHttpRequest (theRequest, options);
1306
1312
  return (flHandled);
1307
1313
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "daveappserver",
3
3
  "description": "Factored code that was appearing in all my servers.",
4
- "version": "0.7.8",
4
+ "version": "0.7.9",
5
5
  "main": "appserver.js",
6
6
  "repository": {
7
7
  "type" : "git",
@@ -25,6 +25,6 @@
25
25
  "daves3": "*",
26
26
  "davehttp": "*",
27
27
  "davemail": "*",
28
- "wpidentity": "*"
28
+ "wpidentity": "^0.4.11"
29
29
  }
30
30
  }