reCAPTCHA for /accounts/register/

85 views
Skip to first unread message

Benjamin Hell

unread,
Oct 14, 2012, 3:44:14 PM10/14/12
to satchmo-users@googlegroups.com users
Hi,

has anybody implemented reCAPTCHA for Satchmo user registration? I am trying it with django-recaptcha:

https://github.com/praekelt/django-recaptcha

I would only need it for the url

url(r'^accounts/register/$', 'register', {'SSL': ssl}, name='registration_register')

but as I see it, satchmo_store.accounts.views.register() does not take a {"backend": captcha.backends.default.CaptchaDefaultBackend'} kwargs parameter. This is implemented in django-registration v0.8 register(), and the examples in django-recaptcha build upon that. I wonder if this is the right track anyways...

Any hints appreciated!

Ben

Kevin Harvey

unread,
Dec 8, 2012, 11:33:22 PM12/8/12
to satchm...@googlegroups.com
Ben, did you ever get this figured out? I'm looking at the same issue now.

Kevin

Kevin Harvey

unread,
Dec 8, 2012, 11:42:48 PM12/8/12
to satchm...@googlegroups.com
Actually, to take this one step further, I'm considering doing this using django-simple-captcha. Here's what I'm thinking it will take, someone please let me know if this is too invasive.

In one of my own installed apps, I'll:
  1. Override /accounts/register/ in some urls.py, which will use as a view...
  2. ... my own version of satchmo_store.accounts.views.register, which will process the form with...
  3. ... my own version of satchmo_store.accounts.views.register_handle_form, which will use as a form...
  4. ... my own version of satchmo_store.forms.RegistrationForm, which will use CaptchaField from django-simple-captcha
That seems like a lot of code duplication just to get a CAPTCHA working. Would there be an easier way?

Kevin

Benjamin Hell

unread,
Dec 16, 2012, 10:25:59 AM12/16/12
to satchm...@googlegroups.com
On Dec 9, 2012, at 05:33 , Kevin Harvey <kcha...@gmail.com> wrote:

> Ben, did you ever get this figured out? I'm looking at the same issue now.

This ended up on my TODO list with lower priority ;-)

I'm not sure anymore if I really want to add some reCaptcha annoyance for potential customers, after they seem to become harder and harder to read. I stumbled across this one recently:

http://picpaste.com/pics/C38lGr83.1355671301.png

It really made me think about unobtrusive things such as a plain and simple honeypot again...

Ben


Raphael

unread,
Dec 16, 2012, 11:28:30 AM12/16/12
to satchm...@googlegroups.com
Hello Ben,

please check out our captcha: https://develissimo.com/accounts/register/ I did it just two days ago... and i think its quite easy to read.
I have removed "noise" features so it gets even clearer to read for users.
what do you think?

It was done with django-simple-captcha: https://github.com/mbi/django-simple-captcha

Kind regards,
Raphael
Reply all
Reply to author
Forward
0 new messages