Gregwar / Captcha

PHP Captcha library
MIT License
1.73k stars 290 forks source link

text_color works only in global config.yml ? #18

Closed apirastru closed 8 years ago

apirastru commented 10 years ago

Hi I'm tring to put the text_color parameter in the form definition as the follow exemple: $builder-> add(...) ... ->add('captcha', 'captcha', array('text_color' => array(255,0,0) )) ...

But seems that it takes only the global config in the config.yml : .... gregwar_captcha: width: 100 height: 50 quality: 20 background_color: [255, 255, 255] text_color: [255, 0, 0] ...

Can you check please ? Thanx Andrea

Gregwar commented 10 years ago

Hi, Do you use as_url captchas?

apirastru commented 10 years ago

Yes here is my complete config : gregwar_captcha: width: 100 height: 50 length: 4 charset: 1234567890 quality: 20 reload: /generate-captcha/1 as_url: true background_color: [255, 255, 255] humanity: 1 text_color: [255, 0, 0]

Gregwar commented 10 years ago

Ok, update your bundle to master and try again

apirastru commented 10 years ago

Seems it works ;) Thank you very much! Andrea