From 54d44268bd7ceb6798e069f3a492e15f215fd4ab Mon Sep 17 00:00:00 2001 From: Tony Air Date: Thu, 14 Jan 2021 23:46:19 +0700 Subject: [PATCH] IMPR: Security hardenings --- app/_config.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/_config.php b/app/_config.php index 3507b0f..75a2a34 100644 --- a/app/_config.php +++ b/app/_config.php @@ -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); -}