Fix Webauthn conf test
This commit is contained in:
parent
37740a3e6a
commit
ed953fc276
|
@ -552,7 +552,7 @@ sub tests {
|
|||
}
|
||||
|
||||
# Use WebAuthn
|
||||
if ( $conf->{webauthn2fActivation}
|
||||
if ( $conf->{webauthn2fActivation} )
|
||||
{
|
||||
eval "use Authen::WebAuthn";
|
||||
return ( 1,
|
||||
|
@ -561,12 +561,10 @@ sub tests {
|
|||
}
|
||||
|
||||
# WebAuthn requires https://
|
||||
if ( $conf->{webauthn2fActivation}
|
||||
if ( $conf->{webauthn2fActivation} )
|
||||
{
|
||||
my $portal_uri = URI->new($conf->{portal});
|
||||
if ($portal_uri->scheme eq "https") {
|
||||
return 1;
|
||||
} else {
|
||||
unless ($portal_uri->scheme eq "https") {
|
||||
return ( 1,
|
||||
"WebAuthn requires HTTPS"
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue