IMPR: Security hardenings

This commit is contained in:
Tony Air 2021-01-14 23:46:19 +07:00
parent d0a4a479c4
commit 54d44268bd

View File

@ -37,12 +37,3 @@ FulltextSearchable::enable();
$parser = ShortcodeParser::get('default');
$parser->unregister('embed');
$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);
}