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