From 0c3b09c39c6cfe70ec10ce8c6252fc59f8714e4c Mon Sep 17 00:00:00 2001 From: ccd0 Date: Fri, 19 Jun 2015 15:38:05 -0700 Subject: [PATCH] Measure expiry time for pasted captchas from time of paste. #407 Prevents captcha non-acceptance when multiple captchas are demanded. --- src/Posting/Captcha.v2.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Posting/Captcha.v2.coffee b/src/Posting/Captcha.v2.coffee index b47cc80fe..ea5c489c9 100644 --- a/src/Posting/Captcha.v2.coffee +++ b/src/Posting/Captcha.v2.coffee @@ -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()