mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #8587 from creative-commoners/pulls/4.3/password-requirements
FIX Move password complexity requirements into framework
This commit is contained in:
commit
d2cc773720
13
_config/passwords.yml
Normal file
13
_config/passwords.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user