Update CaptchaGenerator.php
This commit is contained in:
parent
50405a74a1
commit
c844cbcdbc
@ -77,7 +77,7 @@ class CaptchaGenerator
|
||||
// Returns the image generation URL
|
||||
if ($options['as_url']) {
|
||||
return $this->router->generate('gregwar_captcha.generate_captcha',
|
||||
array('key' => $options['session_key'], 'n' => md5(microtime(true).rand(0, 9))));
|
||||
array('key' => $options['session_key'], 'n' => md5(microtime(true).mt_rand())));
|
||||
}
|
||||
|
||||
return 'data:image/jpeg;base64,' . base64_encode($this->generate($options));
|
||||
|
Loading…
Reference in New Issue
Block a user