File tree 2 files changed +21
-0
lines changed
2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -181,6 +181,24 @@ def USE_PROMOS(self): # noqa
181
181
'allauth.account.auth_backends.AuthenticationBackend' ,
182
182
)
183
183
184
+ AUTH_PASSWORD_VALIDATORS = [
185
+ {
186
+ 'NAME' : 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator' ,
187
+ },
188
+ {
189
+ 'NAME' : 'django.contrib.auth.password_validation.MinimumLengthValidator' ,
190
+ 'OPTIONS' : {
191
+ 'min_length' : 9 ,
192
+ }
193
+ },
194
+ {
195
+ 'NAME' : 'django.contrib.auth.password_validation.CommonPasswordValidator' ,
196
+ },
197
+ {
198
+ 'NAME' : 'django.contrib.auth.password_validation.NumericPasswordValidator' ,
199
+ },
200
+ ]
201
+
184
202
MESSAGE_STORAGE = 'readthedocs.notifications.storages.FallbackUniqueStorage'
185
203
186
204
NOTIFICATION_BACKENDS = [
Original file line number Diff line number Diff line change @@ -51,6 +51,9 @@ def DATABASES(self): # noqa
51
51
# Disable auto syncing elasticsearch documents in development
52
52
ELASTICSEARCH_DSL_AUTOSYNC = False
53
53
54
+ # Disable password validators on development
55
+ AUTH_PASSWORD_VALIDATORS = []
56
+
54
57
@property
55
58
def LOGGING (self ): # noqa - avoid pep8 N802
56
59
logging = super ().LOGGING
You can’t perform that action at this time.
0 commit comments