Open lucawen opened 5 years ago
Does it work if you make only the username/password form have a recaptcha field?
No... the recaptcha return as required to input..
I'm not sure what you mean by that. As I read it, you'll have a recaptcha on every step which is simply unnecessary IMO.
still not working with recaptcha only on login form..
ooh.. now i understand the last question... Yes, only with normal user/pass form with recaptcha works
I'm having this same problem. Works everywhere but with forms that inherit django.contrib.auth.forms.AuthenticationForm. Django 1.8.3.
Im trying to implement django recaptcha2 with django two factor auth and when is with recaptcha field, its not requisiting code for login.. When i remove the field for recaptcha, its work normal.
I tried with django-nocaptcha-recaptcha and have the same behavior.
Maybe a validation problem in the views ?
Expected Behavior
After insert values in form, and click on recaptcha button, if have devices, show the token form
Current Behavior
When using the recaptcha field, when a user have a device to check, its logging normal, without requesting the code.
Possible Solution
Maybe the view validation of current form its not accepting another fields validation or only the first field validation
Steps to Reproduce (for bugs)
install recaptcha2. Check for this lib documentation for how to install, its simple: https://github.com/kbytesys/django-recaptcha2
Create custom forms for add recaptcha:
Context
Add recaptcha for login in two factor auth template, validate in the backend not just the frontend.
Your Environment