diff --git a/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Conf/Tests.pm b/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Conf/Tests.pm index 1eded7247..a716acb27 100644 --- a/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Conf/Tests.pm +++ b/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Conf/Tests.pm @@ -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; }, };