summaryrefslogtreecommitdiffstats
path: root/module/plugins/ReCaptcha.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/ReCaptcha.py')
-rw-r--r--module/plugins/ReCaptcha.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/ReCaptcha.py b/module/plugins/ReCaptcha.py
index e8b86195a..1ced5e18d 100644
--- a/module/plugins/ReCaptcha.py
+++ b/module/plugins/ReCaptcha.py
@@ -3,17 +3,17 @@ import re
class ReCaptcha():
def __init__(self, plugin):
self.plugin = plugin
-
+
def challenge(self, id):
js = self.plugin.req.load("http://www.google.com/recaptcha/api/challenge", get={"k":id}, cookies=True)
-
+
try:
challenge = re.search("challenge : '(.*?)',", js).group(1)
server = re.search("server : '(.*?)',", js).group(1)
except:
self.plugin.fail("recaptcha error")
result = self.result(server,challenge)
-
+
return challenge, result
def result(self, server, challenge):