Fix conf test
This commit is contained in:
parent
2db9b2bce7
commit
63a286f225
|
@ -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;
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user