Commit 59550d3a authored by Christophe Maudoux's avatar Christophe Maudoux

Improve CSRF token test

parent 338abbbc
...@@ -529,8 +529,8 @@ sub tests { ...@@ -529,8 +529,8 @@ sub tests {
# Warn if XSRF token TTL is higher than 10s # Warn if XSRF token TTL is higher than 10s
formTimeout => sub { formTimeout => sub {
return 1 unless ( defined $conf->{formTimeout} ); return 1 unless ( defined $conf->{formTimeout} );
return ( 0, "XSRF form token TTL must be higher than 10s" ) return ( 0, "XSRF form token TTL must be higher than 30s" )
unless ( $conf->{formTimeout} > 10 ); unless ( $conf->{formTimeout} > 30 );
return ( 1, "XSRF form token TTL should not be higher than 2mn" ) return ( 1, "XSRF form token TTL should not be higher than 2mn" )
if ( $conf->{formTimeout} > 120 ); if ( $conf->{formTimeout} > 120 );
......
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