8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-16 00:13:12 +00:00

Give to django main user personnal fields

This commit is contained in:
Gabriel Detraz 2020-04-19 23:02:50 +02:00
parent a1d1d04a23
commit 436640d205

View file

@ -111,6 +111,9 @@ OPTIONNAL_APPS = OPTIONNAL_APPS_RE2O + ()
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
'OPTIONS': {
'user_attributes': ['surname', 'pseudo', 'name', 'email'],
}
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',