From 0225553eeb45db85c7613c616a35cf2cd6559200 Mon Sep 17 00:00:00 2001 From: Corentin Chary Date: Tue, 2 Apr 2013 10:17:11 +0200 Subject: [PATCH] euscan_captcha: fix captcha --- euscanwww/euscan_captcha/forms.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/euscanwww/euscan_captcha/forms.py b/euscanwww/euscan_captcha/forms.py index ca4a876..7e84816 100644 --- a/euscanwww/euscan_captcha/forms.py +++ b/euscanwww/euscan_captcha/forms.py @@ -1,5 +1,10 @@ from captcha.fields import ReCaptchaField from registration.forms import RegistrationForm +from django.conf import settings class RegistrationFormCaptcha(RegistrationForm): - captcha = ReCaptchaField(attrs={'theme': 'white'}) + captcha = ReCaptchaField( + public_key=settings.RECAPTCHA_PUBLIC_KEY, + private_key=settings.RECAPTCHA_PRIVATE_KEY, + use_ssl=True, + attrs={'theme': 'white'})