botframework
Advanced tools
Comparing version 0.8.1 to 0.8.2
@@ -45,6 +45,6 @@ "use strict"; | ||
FacebookServer.prototype.verifyRequest = function (request, reply) { | ||
var hub = request.query.hub; | ||
if (hub.mode === FACEBOOK_HUB_MODE.SUBSCRIBE) { | ||
if (hub.verify_token === this.settings.fb.verify_token) { | ||
return reply(hub.challenge); | ||
var query = request.query; | ||
if (query['hub.mode'] === FACEBOOK_HUB_MODE.SUBSCRIBE) { | ||
if (query['hub.verify_token'] === this.settings.fb.verify_token) { | ||
return reply(query['hub.challenge']); | ||
} | ||
@@ -51,0 +51,0 @@ } |
{ | ||
"name": "botframework", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"description": "Framework for messaging bots", | ||
@@ -5,0 +5,0 @@ "main": "./dist/es5/src/bot.js", |
@@ -55,6 +55,6 @@ import {IBotSettings} from '../interfaces'; | ||
private verifyRequest(request: Request, reply: IReply) { | ||
let hub: IFacebookVerifyHubParams = request.query.hub; | ||
if (hub.mode === FACEBOOK_HUB_MODE.SUBSCRIBE) { | ||
if (hub.verify_token === this.settings.fb.verify_token) { | ||
return reply(hub.challenge); | ||
let query: any = request.query; | ||
if (query['hub.mode'] === FACEBOOK_HUB_MODE.SUBSCRIBE) { | ||
if (query['hub.verify_token'] === this.settings.fb.verify_token) { | ||
return reply(query['hub.challenge']); | ||
} | ||
@@ -61,0 +61,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
769455