mirror of
https://github.com/a2nt/silverstripe-webpack.git
synced 2024-10-22 17:05:31 +02:00
IMPR: Security hardenings
This commit is contained in:
parent
d0a4a479c4
commit
54d44268bd
@ -37,12 +37,3 @@ FulltextSearchable::enable();
|
|||||||
$parser = ShortcodeParser::get('default');
|
$parser = ShortcodeParser::get('default');
|
||||||
$parser->unregister('embed');
|
$parser->unregister('embed');
|
||||||
$parser->register('embed', [EmbedShortcodeProvider::class, 'handle_shortcode']);
|
$parser->register('embed', [EmbedShortcodeProvider::class, 'handle_shortcode']);
|
||||||
|
|
||||||
if (!Director::isDev()) {
|
|
||||||
$validator = new SecurityPasswordValidator();
|
|
||||||
$validator->setMinLength(8);
|
|
||||||
$validator->maxLength(72);
|
|
||||||
$validator->setHistoricCount(6);
|
|
||||||
$validator->characterStrength(3, [ 'lowercase', 'uppercase', 'digits', 'punctuation' ]);
|
|
||||||
Member::set_password_validator($validator);
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user