handle empty string value for yubikey parameters (#2211)
This commit is contained in:
parent
8b6ff1a698
commit
9d7e5c61cc
|
@ -52,10 +52,18 @@ sub init {
|
||||||
|
|
||||||
$self->yubi(
|
$self->yubi(
|
||||||
Auth::Yubikey_WebClient->new( {
|
Auth::Yubikey_WebClient->new( {
|
||||||
id => $self->conf->{yubikey2fClientID},
|
id => $self->conf->{yubikey2fClientID},
|
||||||
api => $self->conf->{yubikey2fSecretKey},
|
api => $self->conf->{yubikey2fSecretKey},
|
||||||
nonce => $self->conf->{yubikey2fNonce},
|
(
|
||||||
url => $self->conf->{yubikey2fUrl}
|
$self->conf->{yubikey2fNonce}
|
||||||
|
? ( nonce => $self->conf->{yubikey2fNonce} )
|
||||||
|
: ()
|
||||||
|
),
|
||||||
|
(
|
||||||
|
$self->conf->{yubikey2fUrl}
|
||||||
|
? ( url => $self->conf->{yubikey2fUrl} )
|
||||||
|
: ()
|
||||||
|
),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user