Fix little warning (#1148)

This commit is contained in:
Xavier Guimard 2018-06-12 17:56:19 +02:00
parent e1f39c4adf
commit 0769967407

View File

@ -52,7 +52,7 @@ sub run {
my ( $self, $req, $token ) = @_;
my $checkLogins = $req->param('checkLogins');
$self->logger->debug("checkLogins ? $checkLogins");
$self->logger->debug("checkLogins set") if ($checkLogins);
# Check if user is registered
if ( my $res = $self->loadUser( $req, $req->sessionInfo ) ) {
@ -207,8 +207,6 @@ sub loadUser {
}
$self->logger->debug("2F Device(s) found");
foreach (@$_2fDevices) {
$self->logger->debug("Looking for registered U2F key(s) ...");
if ( $_->{type} eq 'U2F' ) {