Simplified password check at registration

Everyone was complaining, everything was on fire!
This commit is contained in:
Sebastian Lohff 2018-02-07 23:35:10 +01:00 committed by root
parent 930eba601d
commit b74da62c30
1 changed files with 9 additions and 6 deletions

View File

@ -101,13 +101,16 @@ AUTH_PASSWORD_VALIDATORS = [
}, },
{ {
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
'OPTIONS': {
'min_length': 4,
}, },
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
}, },
#{
# 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
#},
#{
# 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
#},
] ]