pallets-eco / flask-security-3.0

Quick and simple security for Flask applications
MIT License
1.63k stars 512 forks source link

Captcha on register form #404

Open rochacbruno opened 9 years ago

rochacbruno commented 9 years ago

Can we have a built in captcha on register form

SECURITY_REGISTER_CAPTCHA = {'recaptcha_api_key': ...}

Or maybe in form of extension, is it possible to create extensions to FlaskSecurity?

There is this: https://github.com/mardix/flask-recaptcha

related to: https://github.com/quokkaproject/quokka/issues/112

allucardster commented 9 years ago

I think you can create a custom register form and add a recaptcha field through Flask-WTF dependency. Please take a look on this:

https://flask-wtf.readthedocs.org/en/latest/form.html#recaptcha

rochacbruno commented 9 years ago

Thanks. I did it https://github.com/quokkaproject/quokka/blob/development/quokka/ext/security.py#L26

But I think it could be built in and optional in flask-security