From 9f6da3d90b1ab0cba86bf28ad5c9559fc438f993 Mon Sep 17 00:00:00 2001 From: Christophe Maudoux Date: Tue, 31 Jul 2018 21:05:03 +0200 Subject: [PATCH] typo --- .../lib/Lemonldap/NG/Manager/Conf/Tests.pm | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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; },