Tethik / flask-session-captcha

A captcha implemention for flask
MIT License
24 stars 8 forks source link

Add possibility to generate a `class` attribute from the jinja function #30

Closed GuillaumeGomez closed 2 years ago

GuillaumeGomez commented 2 years ago

Quite convenient in my case. :)

GuillaumeGomez commented 2 years ago

Oh nice, you fixed the CI since the last time.

Tethik commented 2 years ago

Why not. In the future it might make sense to also expose other params too, like width and height.

Note: you can sort of achieve this already by not using the jinja global, instead using src = captcha.generate() and manually passing the src to an img tag inside the template.