Commit c2da030b authored by Christophe Maudoux's avatar Christophe Maudoux

BruteForceProtection plugin disable by default

parent d06a6fc9
...@@ -19,7 +19,6 @@ sub defaultValues { ...@@ -19,7 +19,6 @@ sub defaultValues {
'authentication' => 'Demo', 'authentication' => 'Demo',
'available2F' => 'UTOTP,TOTP,U2F,REST,Ext2F,Yubikey', 'available2F' => 'UTOTP,TOTP,U2F,REST,Ext2F,Yubikey',
'available2FSelfRegistration' => 'TOTP,U2F,Yubikey', 'available2FSelfRegistration' => 'TOTP,U2F,Yubikey',
'bruteForceProtection' => 1,
'bruteForceProtectionMaxAge' => 300, 'bruteForceProtectionMaxAge' => 300,
'bruteForceProtectionTempo' => 30, 'bruteForceProtectionTempo' => 30,
'captcha_mail_enabled' => 1, 'captcha_mail_enabled' => 1,
......
...@@ -608,7 +608,7 @@ sub attributes { ...@@ -608,7 +608,7 @@ sub attributes {
'type' => 'text' 'type' => 'text'
}, },
'bruteForceProtection' => { 'bruteForceProtection' => {
'default' => 1, 'default' => 0,
'type' => 'bool' 'type' => 'bool'
}, },
'bruteForceProtectionMaxAge' => { 'bruteForceProtectionMaxAge' => {
......
...@@ -574,7 +574,7 @@ sub attributes { ...@@ -574,7 +574,7 @@ sub attributes {
'Maximun interval in seconds since last authentifcation to force reauthentication', 'Maximun interval in seconds since last authentifcation to force reauthentication',
}, },
bruteForceProtection => { bruteForceProtection => {
default => 1, default => 0,
type => 'bool', type => 'bool',
documentation => 'Enable brute force attack protection', documentation => 'Enable brute force attack protection',
}, },
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -15,9 +15,9 @@ use constant afterData => 'run'; ...@@ -15,9 +15,9 @@ use constant afterData => 'run';
sub init { sub init {
my ($self) = @_; my ($self) = @_;
unless ( $self->conf->{loginHistoryEnabled} ) { unless ( $self->conf->{loginHistoryEnabled} ) {
$self->logger->warn( $self->logger->error(
'"History" plugin is required for "BruteForceProtection" plugin'); '"History" plugin is required for "BruteForceProtection" plugin');
#return 0; return 0;
} }
return 1; return 1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment