Commit d4dad48c authored by Christophe Maudoux's avatar Christophe Maudoux 🐛
Browse files

Change order (#1582)

parent 19eaeef3
......@@ -418,6 +418,18 @@ sub tests {
return 1;
},
# Check Combination parameters
combinationParameters => sub {
return 1 unless ( $conf->{authentication} eq "Combination" );
return ( 0, "Combination rule must be defined" )
unless ( $conf->{combination} );
return ( 0, 'userDB must be set to "Same" to enable Combination' )
unless ( $conf->{userDB} eq "Same" );
# Return
return 1;
},
# Warn if 2F dependencies seem missing
sfaDependencies => sub {
......@@ -594,17 +606,6 @@ sub tests {
return 1;
},
# Check Combination parameters
combinationAuthentication => sub {
return 1 unless ( $conf->{authentication} eq "Combination" );
return ( 0, "Combination chain must be defined" )
unless ( $conf->{combination} );
return ( 0, 'userDB must be set to "Same" to enable Combination' )
unless ( $conf->{userDB} eq "Same" );
# Return
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