Recaptcha image URL parameter is no longer same as challenge

This fixes a bug where the captcha would load multiple times.
This commit is contained in:
ccd0 2014-04-28 22:11:08 -07:00
parent 6439b8d7aa
commit 5fac71f638

View File

@ -114,7 +114,7 @@ QR.captcha =
@timeout = Date.now() + @lifetime * $.SECOND - $.MINUTE
challenge = @nodes.challenge.firstChild.value
@nodes.img.alt = challenge
@nodes.img.src = "//www.google.com/recaptcha/api/image?c=#{challenge}"
@nodes.img.src = $.id('recaptcha_challenge_image').src
@nodes.input.value = null
@clear()