Changed session key checking
This commit is contained in:
parent
e92b657796
commit
3ecbec4ae6
|
@ -149,8 +149,8 @@ class CaptchaType extends AbstractType
|
||||||
|
|
||||||
private function generateCaptchaValue()
|
private function generateCaptchaValue()
|
||||||
{
|
{
|
||||||
$value = $this->session->get($this->key);
|
if ($this->session->has($this->key)) {
|
||||||
if (null == $value || 0 == strlen($value)) {
|
$value = $this->session->get($this->key);
|
||||||
$charset = 'abcdefhjkmnprstuvwxyz23456789';
|
$charset = 'abcdefhjkmnprstuvwxyz23456789';
|
||||||
$chars = str_split($charset);
|
$chars = str_split($charset);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue