Append config. test (#1508)

This commit is contained in:
Christophe Maudoux 2018-11-16 22:55:53 +01:00
parent d51856564a
commit 724ada48ce
1 changed files with 10 additions and 0 deletions

View File

@ -569,6 +569,16 @@ sub tests {
return 1;
},
# Warn if number of password reset retries is null
passwordResetRetries => sub {
return 1 unless ( $conf->{portalDisplayResetPassword} );
return ( 1, "Number of reset password retries should not be null" )
unless ( $conf->{passwordResetAllowedRetries} );
# Return
return 1;
},
# Warn if bruteForceProtection enabled without History
bruteForceProtection => sub {
return 1 unless ( $conf->{bruteForceProtection} );