environments/ppa-mbqj77/deployments/203
Christophe Maudoux 7 years ago
parent cb4275d5be
commit 9f6da3d90b
  1. 16
      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;
},

Loading…
Cancel
Save