@tiledesk/tiledesk-server 2.7.5 → 2.7.6

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,9 @@
5
5
  🚀 IN PRODUCTION 🚀
6
6
  (https://www.npmjs.com/package/@tiledesk/tiledesk-server/v/2.3.77)
7
7
 
8
+ # 2.7.6
9
+ - Fix auth with admin token
10
+
8
11
  # 2.7.5
9
12
  - Added support for bot PRIVATE and PUB ket in auth.js
10
13
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-server",
3
3
  "description": "The Tiledesk server module",
4
- "version": "2.7.5",
4
+ "version": "2.7.6",
5
5
  "scripts": {
6
6
  "start": "node ./bin/www",
7
7
  "pretest": "mongodb-runner start",
package/routes/auth.js CHANGED
@@ -36,7 +36,7 @@ if (pKey) {
36
36
  let pubConfigSecret = process.env.GLOBAL_SECRET || config.secret;
37
37
  var pubKey = process.env.GLOBAL_SECRET_OR_PUB_KEY;
38
38
  if (pubKey) {
39
- pubConfigSecret = pKey.replace(/\\n/g, '\n');
39
+ pubConfigSecret = pubKey.replace(/\\n/g, '\n');
40
40
  }
41
41
 
42
42
  var recaptcha = require('../middleware/recaptcha');