aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorentin Chary <corentin.chary@gmail.com>2013-04-02 10:17:11 +0200
committerCorentin Chary <corentin.chary@gmail.com>2013-04-02 10:17:11 +0200
commit0225553eeb45db85c7613c616a35cf2cd6559200 (patch)
tree74a391e02b58a1f02452160cc0a9eee5c2a8094a
parenteuscanwwW: Fixing links in stabilization feed (diff)
downloadeuscan-0225553eeb45db85c7613c616a35cf2cd6559200.tar.gz
euscan-0225553eeb45db85c7613c616a35cf2cd6559200.tar.bz2
euscan-0225553eeb45db85c7613c616a35cf2cd6559200.zip
euscan_captcha: fix captcha
-rw-r--r--euscanwww/euscan_captcha/forms.py7
1 files changed, 6 insertions, 1 deletions
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'})