Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

text_color works only in global config.yml ? #18

Closed
apirastru opened this issue May 7, 2014 · 4 comments
Closed

text_color works only in global config.yml ? #18

apirastru opened this issue May 7, 2014 · 4 comments

Comments

@apirastru
Copy link
Contributor

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
Copy link
Owner

Gregwar commented May 7, 2014

Hi,
Do you use as_url captchas?

@apirastru
Copy link
Contributor Author

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
Copy link
Owner

Gregwar commented May 7, 2014

Ok, update your bundle to master and try again

@apirastru
Copy link
Contributor Author

Seems it works ;)
Thank you very much!
Andrea

@Gregwar Gregwar closed this as completed Mar 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants