Revert "Remove captcha doubling. Only change now made to v1 captcha is [blank captcha] -> "al pacino"."
This reverts commit f543232af98677910ce17ec0e690db1f9c0192a9.
This commit is contained in:
parent
da00c57720
commit
caeb8b9344
@ -106,9 +106,15 @@ Captcha.v1 =
|
||||
@count()
|
||||
$.set 'captchas', @captchas
|
||||
else
|
||||
challenge = @nodes.img.alt
|
||||
response = @nodes.input.value or 'al pacino'
|
||||
if Conf['Auto-load captcha'] then @reload() else @destroy()
|
||||
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, response}
|
||||
|
||||
save: ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user