Revision 989b28f3 snf-astakos-app/astakos/im/widgets.py

b/snf-astakos-app/astakos/im/widgets.py
37 37
from django.utils.safestring import mark_safe
38 38
from django.utils import simplejson as json
39 39

  
40
from astakos.im.settings import RECAPTCHA_PUBLIC_KEY, RECAPTCHA_OPTIONS
40
from astakos.im.settings import RECAPTCHA_PUBLIC_KEY, RECAPTCHA_OPTIONS, \
41
        RECAPTCHA_USE_SSL
41 42

  
42 43
class RecaptchaWidget(forms.Widget):
43 44
    """ A Widget which "renders" the output of captcha.displayhtml """
......
47 48
                         'var RecaptchaOptions = %s'
48 49
                         '</script>') % json.dumps(conf)
49 50
        return mark_safe(recaptcha_conf + \
50
                    captcha.displayhtml(RECAPTCHA_PUBLIC_KEY))
51
                    captcha.displayhtml(RECAPTCHA_PUBLIC_KEY,
52
                        use_ssl=RECAPTCHA_USE_SSL))
51 53

  
52 54
class DummyWidget(forms.Widget):
53 55
    """

Also available in: Unified diff