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

[Question] Can we set a custom captcha text? #16

Closed
91DarioDev opened this issue Oct 30, 2024 · 3 comments
Closed

[Question] Can we set a custom captcha text? #16

91DarioDev opened this issue Oct 30, 2024 · 3 comments

Comments

@91DarioDev
Copy link

How can we choose the text to use for the captcha ?

@J-Rios
Copy link
Owner

J-Rios commented Nov 1, 2024

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.

@91DarioDev
Copy link
Author

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

@J-Rios
Copy link
Owner

J-Rios commented Nov 4, 2024

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 :)

@J-Rios J-Rios changed the title How to choose the text of the captcha? [Question] Can we set a custom captcha text? Dec 14, 2024
@J-Rios J-Rios closed this as completed Dec 14, 2024
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