-
Notifications
You must be signed in to change notification settings - Fork 18
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
[Question] Can we set a custom captcha text? #16
Comments
Hello, Do you mean the font used in the images? Current library implementation loads all fonts that are placed inside the "multicolorcaptcha/fonts" directory at object instantiation. Then, when a captcha image generation is requested, any of this fonts are randomly selected and used. |
Sorry I meant this: I want to tell the library which text the image should contains. Example: I want the pic to have "12345" inside. in the readme it seems like that the code inside the captcha is random and cannot be chosen |
Correct, the captcha text/numbers are randomly generated and currently there is no support for generating captchas from custom text/number request. If you want feel free to contribute into the project adding that support, otherwise we can set this issue as a Request (instead of a question) and wait if someone wants to add that functionality :) |
How can we choose the text to use for the captcha ?
The text was updated successfully, but these errors were encountered: