Avoid warning (#2716)

This commit is contained in:
Christophe Maudoux 2022-03-04 23:00:32 +01:00
parent 03df3a3329
commit 50c312acc3
1 changed files with 2 additions and 2 deletions

View File

@ -240,7 +240,7 @@ sub run {
# Remove expired 2F devices
my $session = $req->sessionInfo;
if ( $session->{_2fDevices} ) {
$self->logger->debug("Loading 2F Devices ...");
$self->logger->debug("Loading 2F devices ...");
# Read existing 2FDevices
my $_2fDevices =
@ -502,7 +502,7 @@ sub _displayRegister {
return [ 302, [ Location => $self->conf->{portal} . $am[0]->{URL} ], [] ]
if (
@am == 1
and not( $req->userData->{_2fDevices} =~ /\w+/
and not( $req->userData->{_2fDevices} && $req->userData->{_2fDevices} =~ /\w+/
or $req->data->{sfRegRequired} )
);