Commit f4e591ed authored by Xavier Guimard's avatar Xavier Guimard

Fix new tests

parent 87782bd2
Pipeline #2353 passed with stages
in 6 minutes and 14 seconds
...@@ -417,26 +417,29 @@ sub tests { ...@@ -417,26 +417,29 @@ sub tests {
}, },
# Warn if TOTP not 6 or 8 digits long # Warn if TOTP not 6 or 8 digits long
#totp2fDigits => sub { totp2fDigits => sub {
# return ( return 1 unless ( defined $conf->{totp2fDigits} );
# 1, return (
# ( 1,
# ( (
# $conf->{totp2fDigits} == 6 (
# or $conf->{totp2fDigits} == 8 $conf->{totp2fDigits} == 6
# ) or $conf->{totp2fDigits} == 8
# ? '' )
# : 'TOTP should be 6 or 8 digits long' ? ''
# ) : 'TOTP should be 6 or 8 digits long'
# ); )
#}, );
#formTimeout => sub { },
# return ( 0, "XSRF form token TTL must be higher than 10s" ) formTimeout => sub {
# unless ( $conf->{formTimeout} > 10 ); return 1 unless ( defined $conf->{totp2fDigits} );
# return ( 1, "XSRF form token TTL should not be lower or equal to 2mn" ) return ( 0, "XSRF form token TTL must be higher than 10s" )
# unless ( $conf->{formTimeout} < 121 ); unless ( $conf->{formTimeout} > 10 );
# return 1; return ( 1,
#}, "XSRF form token TTL should not be lower or equal to 2mn" )
unless ( $conf->{formTimeout} < 121 );
return 1;
},
}; };
} }
......
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