hapi-recaptcha
Advanced tools
Comparing version 0.1.1 to 0.2.0
@@ -8,4 +8,2 @@ var path = require('path'); | ||
var __root = path.resolve('.'); | ||
var internals = { | ||
@@ -36,2 +34,3 @@ defaults: { | ||
if (!content || content instanceof Stream) { | ||
server.log(['plugin', 'hapi-recapcha'], { message: 'reCaptcha response 403: No content.' }); | ||
return reply(Boom.forbidden()); | ||
@@ -43,4 +42,6 @@ } | ||
if (err || !status.success) { | ||
server.log(['plugin', 'hapi-recapcha'], { message: 'reCaptcha response 403: recaptcha .', err: err, status: status }); | ||
return reply(Boom.forbidden()); | ||
} else { | ||
server.log(['plugin', 'hapi-recapcha'], { message: 'reCaptcha response 200.' }); | ||
return reply.continue(); | ||
@@ -50,2 +51,3 @@ } | ||
} else { | ||
server.log(['plugin', 'hapi-recapcha'], { message: 'reCaptcha response 200.' }); | ||
return reply.continue(); | ||
@@ -91,2 +93,2 @@ } | ||
}); | ||
} | ||
} |
{ | ||
"name": "hapi-recaptcha", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "Google's reCaptcha for hapi", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
6276
75