summaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
authorSheogorath2018-04-13 09:33:55 +0200
committerSheogorath2018-04-13 09:38:59 +0200
commitef86bf5cba65af3dc3db10944cec8d40d848daaa (patch)
tree7d5973f44d35121e05cb90fd21906db1dd6c49a1 /app.js
parentf23f403bcb990a03fe27d5d4dda491c5de89c464 (diff)
Use API key instead of clientSecret
As recently discovered we send the clientSecret to the webclient which is potentionally dangerous. This patch should fix the problem and replace the clientSecret with the originally intended and correct way to implement it using the API key. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
Diffstat (limited to 'app.js')
-rw-r--r--app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.js b/app.js
index fcf905d5..63b880c7 100644
--- a/app.js
+++ b/app.js
@@ -33,7 +33,7 @@ var data = {
urlpath: config.urlPath,
debug: config.debug,
version: config.version,
- GOOGLE_API_KEY: config.google.clientSecret,
+ GOOGLE_API_KEY: config.google.apiKey,
GOOGLE_CLIENT_ID: config.google.clientID,
DROPBOX_APP_KEY: config.dropbox.appKey,
allowedUploadMimeTypes: config.allowedUploadMimeTypes