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 57823ce75..7a9bd89d3 100644 --- a/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Conf/Tests.pm +++ b/lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Conf/Tests.pm @@ -404,14 +404,6 @@ sub tests { if ($@); } - # Use TOTP - if ( $conf->{yubikey2fActivation} ) { - eval "use Auth::Yubikey_WebClient"; - return ( 0, -"Auth::Yubikey_WebClient module is required to enable Yubikey" - ) if ($@); - } - # Use U2F if ( $conf->{u2fActivation} or $conf->{utotp2fActivation} ) @@ -422,6 +414,14 @@ sub tests { ) if ($@); } + # Use Yubikey + if ( $conf->{yubikey2fActivation} ) { + eval "use Auth::Yubikey_WebClient"; + return ( 0, +"Auth::Yubikey_WebClient module is required to enable Yubikey" + ) if ($@); + } + # Return return 1; },