FIX Move password complexity requirements into framework

This commit is contained in:
Robbie Averill 2018-11-08 13:23:53 +02:00
parent 358cef0cdf
commit cf4b16ed38

13
_config/passwords.yml Normal file
View File

@ -0,0 +1,13 @@
---
Name: corepasswords
---
SilverStripe\Core\Injector\Injector:
SilverStripe\Security\PasswordValidator:
properties:
MinLength: 8
HistoricCount: 6
# In the case someone uses `new PasswordValidator` instead of Injector, provide some safe defaults through config.
SilverStripe\Security\PasswordValidator:
min_length: 8
historic_count: 6