django-simple-captcha icon indicating copy to clipboard operation
django-simple-captcha copied to clipboard

Feature request: Passing specifc config to CaptchaField

Open Pyvonix opened this issue 2 years ago • 0 comments

Hi,

Thank for the great library. I use it since a while.

I look for a way to pass specific config to one CaptchaField, and not as default config!

We could imagine a use case, where users want to use different generators or apply different length on some forms. But in the current design this only possible to modify all captcha, not only one.

Example wished forms.py:

class SomeForm:
    captcha = CaptchaField(label='Captcha',
                                           required=True,
                                           config={"CAPTCHA_LENGTH": 8,
                                                        "CAPTCHA_CHALLENGE_FUNCT": "captcha.helpers.random_char_challenge"})

Did you envisage that kind of improvement?

Thank

Pyvonix avatar Nov 26 '22 18:11 Pyvonix