From 4ae1035870cccd42b1fa970b15705e1f120be4cd Mon Sep 17 00:00:00 2001 From: Vlad Date: Sun, 14 May 2017 21:09:12 +0300 Subject: [PATCH] Update reCAPTCHA V2 Please testing function Recaptcha.prototype.verify! --- lib/recaptcha.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/recaptcha.js b/lib/recaptcha.js index 17f2555..88f7212 100644 --- a/lib/recaptcha.js +++ b/lib/recaptcha.js @@ -16,7 +16,7 @@ var http = require('http'), */ var API_HOST = 'www.google.com', - API_END_POINT = '/recaptcha/api/verify', + API_END_POINT = '/recaptcha/api.js', SCRIPT_SRC = API_HOST + '/recaptcha/api/challenge', NOSCRIPT_SRC = API_HOST + '/recaptcha/api/noscript'; @@ -73,7 +73,8 @@ Recaptcha.prototype.toHTML = function() { var script_src = (this.is_secure ? "https://" : "http://") + SCRIPT_SRC + '?' + query_string; var noscript_src = (this.is_secure ? "https://" : "http://") + NOSCRIPT_SRC + '?' + query_string; - return '' + + return '
' + + '' + '