From c5410bc1e1c6566f7a717d14a17aa5d7083bac9e Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Sun, 19 Apr 2020 23:02:50 +0200 Subject: [PATCH] Give to django main user personnal fields --- re2o/settings_local.example.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/re2o/settings_local.example.py b/re2o/settings_local.example.py index 18c80559..d0de4709 100644 --- a/re2o/settings_local.example.py +++ b/re2o/settings_local.example.py @@ -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',