This commit is contained in:
Christophe Maudoux 2018-07-10 23:06:15 +02:00
parent b9e4ef537f
commit c78793299f

View File

@ -431,8 +431,10 @@ sub tests {
);
},
formTimeout => sub {
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 than 20s") unless ( $conf->{formTimeout} > 19 );
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 than 20s" )
unless ( $conf->{formTimeout} > 19 );
# Return
return 1;