Measure expiry time for pasted captchas from time of paste. #407

Prevents captcha non-acceptance when multiple captchas are demanded.
This commit is contained in:
ccd0 2015-06-19 15:38:05 -07:00
parent f59720fc0c
commit 0c3b09c39c

View File

@ -161,7 +161,7 @@ Captcha.v2 =
$.forceSync 'captchas'
@captchas.push
response: token or $('textarea', @nodes.container).value
timeout: (if pasted then @setupTime else Date.now()) + @lifetime
timeout: Date.now() + @lifetime
$.set 'captchas', @captchas
@count()