From 448b812f656308da60a78f9fde6e6c565916fe44 Mon Sep 17 00:00:00 2001 From: Gregwar Date: Mon, 25 May 2015 11:41:13 +0200 Subject: [PATCH] Fixing captcha url (broken in #128, see also #129) --- Generator/CaptchaGenerator.php | 3 ++- Resources/views/captcha.html.twig | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Generator/CaptchaGenerator.php b/Generator/CaptchaGenerator.php index bf1f93b..04e424d 100644 --- a/Generator/CaptchaGenerator.php +++ b/Generator/CaptchaGenerator.php @@ -76,7 +76,8 @@ class CaptchaGenerator // Returns the image generation URL if ($options['as_url']) { - return $this->router->generate('gregwar_captcha.generate_captcha', array('key' => $options['session_key'])); + return $this->router->generate('gregwar_captcha.generate_captcha', + array('key' => $options['session_key'], 'n' => time())); } return 'data:image/jpeg;base64,' . base64_encode($this->generate($options)); diff --git a/Resources/views/captcha.html.twig b/Resources/views/captcha.html.twig index b23251b..88fc5fc 100644 --- a/Resources/views/captcha.html.twig +++ b/Resources/views/captcha.html.twig @@ -3,7 +3,7 @@ - {% else %} {% spaceless %} - + {% if reload %}