django-simple-captcha
django-simple-captcha copied to clipboard
CAPTCHA_LETTER_COLOR_FUNCT
Create a feature that can be used to change the color of captcha letters. For example, random colors
Thank you, this is actually a really good idea! Not sure it'd make CAPTCHAs harder to defeat for an attacker, but a colorful challenge could be more fun to interact with.
Two tiny requests, if you would be so kind:
- I'd like
get_letter_color()to accept two arguments: an integer index of the position in thefor char in charlist:loop, and the second one beingcharlistitself. These two arguments should then be passed to the configured callable. This would make it easier to apply particular colors to a given letter, say, or apply a color spectrum over the length of the CAPTCHA. Please also include these arguments in the description of the function in the documentation. - A test would be most welcome :grin:
Thanks!