Enable password validators on the project template.

Thanks to @tmsndrs for the heads-up!
pull/4101/merge
Matt Westcott 2017-12-04 12:17:58 +00:00
rodzic 3191849b6b
commit 733f487dc0
3 zmienionych plików z 21 dodań i 0 usunięć

Wyświetl plik

@ -36,6 +36,7 @@ Changelog
* Fix: Prevent the footer and revisions link from unnecessarily collapsing on mobile (Jack Paine)
* Fix: Empty searches were activated when paginating through images and documents (LB (Ben Johnston))
* Fix: Summary numbers of pages, images and documents were not responsive when greater than 4 digits (Michael Palmer)
* Fix: Project template now has password validators enabled by default (Matt Westcott)
1.13.1 (17.11.2017)

Wyświetl plik

@ -54,6 +54,7 @@ Bug fixes
* Prevent the footer and revisions link from unnecessarily collapsing on mobile (Jack Paine)
* Empty searches were activated when paginating through images and documents (LB (Ben Johnston))
* Summary numbers of pages, images and documents were not responsive when greater than 4 digits (Michael Palmer)
* Project template now has password validators enabled by default (Matt Westcott)
Upgrade considerations

Wyświetl plik

@ -97,6 +97,25 @@ DATABASES = {
}
# Password validation
# https://docs.djangoproject.com/en/{{ docs_version }}/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]
# Internationalization
# https://docs.djangoproject.com/en/{{ docs_version }}/topics/i18n/