Fix conf test

This commit is contained in:
Christophe Maudoux 2018-07-13 20:55:18 +02:00
parent 2db9b2bce7
commit 63a286f225

View File

@ -432,12 +432,12 @@ sub tests {
);
},
formTimeout => sub {
return 1 unless ( defined $conf->{totp2fDigits} );
return 1 unless ( defined $conf->{formTimeout} );
return ( 0, "XSRF form token TTL must be higher than 10s" )
unless ( $conf->{formTimeout} > 10 );
return ( 1,
"XSRF form token TTL should not be lower or equal to 2mn" )
unless ( $conf->{formTimeout} < 121 );
"XSRF form token TTL should not be lower than 2mn" )
unless ( $conf->{formTimeout} > 119 );
return 1;
},
};