Fix detection of forgotten captcha.
This commit is contained in:
parent
e3fcf3d3a1
commit
cbc12dfac6
@ -126,8 +126,10 @@ Captcha.v1 =
|
||||
$.set 'captchas', @captchas
|
||||
else
|
||||
challenge = @nodes.img.alt
|
||||
if response = @nodes.input.value
|
||||
if /\S/.test(response = @nodes.input.value)
|
||||
@destroy()
|
||||
else
|
||||
return null
|
||||
{challenge, response}
|
||||
|
||||
save: ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user