|
|
|
@ -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; |
|
|
|
|
}, |
|
|
|
|