From f543232af98677910ce17ec0e690db1f9c0192a9 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Wed, 10 Dec 2014 03:30:41 -0800 Subject: [PATCH] Remove captcha doubling. Only change now made to v1 captcha is [blank captcha] -> "al pacino". --- src/Posting/Captcha.v1.coffee | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/Posting/Captcha.v1.coffee b/src/Posting/Captcha.v1.coffee index 482cc33f0..e211a0008 100644 --- a/src/Posting/Captcha.v1.coffee +++ b/src/Posting/Captcha.v1.coffee @@ -106,15 +106,9 @@ Captcha.v1 = @count() $.set 'captchas', @captchas else - challenge = @nodes.img.alt - if response = @nodes.input.value - if Conf['Auto-load captcha'] then @reload() else @destroy() - # Duplicate one-word captchas. - # Don't duplicate street numbers for now (needs testing). - if !response - response = 'al pacino' - else if !/\s|^\d$/.test response - response = "#{response} #{response}" + challenge = @nodes.img.alt + response = @nodes.input.value or 'al pacino' + if Conf['Auto-load captcha'] then @reload() else @destroy() {challenge, response} save: ->