fix for issue #2.

This commit is contained in:
2017-11-22 15:56:39 +00:00
parent 28a2f29f5e
commit c330c6812b
5 changed files with 52 additions and 31 deletions

View File

@@ -1,5 +1,6 @@
from captcha.fields import CaptchaField
from django import forms
from captcha.fields import ReCaptchaField
from comic.models import Setting
@@ -33,7 +34,7 @@ class LoginForm(forms.Form):
public_key = Setting.objects.get(name='RECAPTCHA_PUBLIC_KEY').value
private_key = Setting.objects.get(name='RECAPTCHA_PRIVATE_KEY').value
captcha = ReCaptchaField(
captcha = CaptchaField(
label='',
public_key=public_key,
private_key=private_key,