Skip to content
This repository has been archived by the owner on Feb 10, 2021. It is now read-only.

Commit

Permalink
Keep tokens private.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisl8 committed May 3, 2016
1 parent ef5ca45 commit d5e05a4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
3 changes: 1 addition & 2 deletions server/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
var personalData = require('../node/personalData');
var twilio = require('twilio');
var config = require('./twilioConfig');
// Redis
var redis = require('redis');
var redisServer = 'localhost';
Expand Down Expand Up @@ -111,7 +110,7 @@ app.post('/updateRobotURL', function (req, res) {
});

app.post('/twilio', function(request, response) {
if (twilio.validateExpressRequest(request, config.twilio.key, {url: config.twilio.smsWebhook}) || config.disableTwilioSigCheck) {
if (twilio.validateExpressRequest(request, personalData.twilio.auth_token, {url: personalData.twilio.smsWebhook})) {
response.header('Content-Type', 'text/xml');
console.log(request.body);
//var body = request.param('Body').trim();
Expand Down
11 changes: 0 additions & 11 deletions server/twilioConfig.js

This file was deleted.

0 comments on commit d5e05a4

Please sign in to comment.