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:
parent
6439b8d7aa
commit
5fac71f638
@ -114,7 +114,7 @@ QR.captcha =
|
|||||||
@timeout = Date.now() + @lifetime * $.SECOND - $.MINUTE
|
@timeout = Date.now() + @lifetime * $.SECOND - $.MINUTE
|
||||||
challenge = @nodes.challenge.firstChild.value
|
challenge = @nodes.challenge.firstChild.value
|
||||||
@nodes.img.alt = challenge
|
@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
|
@nodes.input.value = null
|
||||||
@clear()
|
@clear()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user