captcha remake
This commit is contained in:
parent
3b41d17151
commit
f5c4b37b00
|
@ -44,7 +44,9 @@ INSTALLED_APPS = [
|
|||
'captcha',
|
||||
|
||||
]
|
||||
CAPTCHA_CHALLENGE_FUNCT = 'captcha.helpers.math_challenge'
|
||||
# CAPTCHA_CHALLENGE_FUNCT = 'captcha.helpers.math_challenge'
|
||||
CAPTCHA_NOISE_FUNCTIONS = ('captcha.helpers.noise_null',)
|
||||
CAPTCHA_BACKGROUND_COLOR = 'orange'
|
||||
MIDDLEWARE = [
|
||||
'django.middleware.security.SecurityMiddleware',
|
||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||
|
|
|
@ -144,6 +144,7 @@
|
|||
</div>
|
||||
<p style="color:red;text-align: center">{{msg}}</p>
|
||||
<div class="login-center clearfix">
|
||||
|
||||
<div class="login-center-input">
|
||||
{{ user_form.captcha }}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue